llvm.org GIT mirror llvm / e8ea011
It turns out that the testcase in question uncovered subreg-handling bug. Add assert in asmprinter to catch such cases and xfail the tests. PR is to be filled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86375 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 10 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
346346 &ARM::DPR_VFP2RegClass);
347347 O << getRegisterName(DReg) << '[' << (RegNum & 1) << ']';
348348 } else {
349 if (unsigned SubReg = MO.getSubReg())
350 Reg = TRI->getSubReg(Reg, SubReg);
351
349 assert(!MO.getSubReg() && "Subregs should be eliminated!");
352350 O << getRegisterName(Reg);
353351 }
354352 break;
136136 case MachineOperand::MO_Register:
137137 // Ignore all implicit register operands.
138138 if (MO.isImplicit()) continue;
139 assert(!MO.getSubReg() && "Subregs should be eliminated!");
139140 MCOp = MCOperand::CreateReg(MO.getReg());
140141 break;
141142 case MachineOperand::MO_Immediate:
0 ; RUN: llc -mcpu=cortex-a8 < %s | FileCheck %s
1 ; XFAIL: *
12 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
23 target triple = "armv7-eabi"
34