aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-11-06 23:45:15 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-11-06 23:45:15 +0000
commitfc2cba8362b603b376ea9a27b257579efaff14ac (patch)
tree142fc5c2c03683d94fe705894afa5a4abef14bc1 /lib
parent54c78ef2fed32e82e6aea8cbeb89156814eaf27c (diff)
Honour subreg machine operands during asmprinting
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 6a0c8988f2..a3f52cdf19 100644
--- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -347,6 +347,9 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
&ARM::DPR_VFP2RegClass);
O << getRegisterName(DReg) << '[' << (RegNum & 1) << ']';
} else {
+ if (unsigned SubReg = MO.getSubReg())
+ Reg = TRI->getSubReg(Reg, SubReg);
+
O << getRegisterName(Reg);
}
break;