It turns out that the testcase in question uncovered subreg-handling bug.
[oota-llvm.git] / lib / Target / ARM / AsmPrinter / ARMMCInstLower.cpp
index 8686961db45ebb15a707b5fe6f9fe8d04d87c5c3..c49fee3a5505ac5ffa83f844c4049d5c53cec049 100644 (file)
@@ -137,6 +137,7 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
     case MachineOperand::MO_Register:
       // Ignore all implicit register operands.
       if (MO.isImplicit()) continue;
+      assert(!MO.getSubReg() && "Subregs should be eliminated!");
       MCOp = MCOperand::CreateReg(MO.getReg());
       break;
     case MachineOperand::MO_Immediate: