Skip to content

Commit eca8a14

Browse files
committed
Don't emit BUNDLEs when printing instruction bundles
1 parent 01b1001 commit eca8a14

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/lib/Target/Sparc/SparcAsmPrinter.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,15 @@ void SparcAsmPrinter::lowerToMCInst(const MachineInstr *MI, MCInst &OutMI) {
326326
void SparcAsmPrinter::emitInstruction(const MachineInstr *MI) {
327327
Sparc_MC::verifyInstructionPredicates(MI->getOpcode(),
328328
getSubtargetInfo().getFeatureBits());
329+
if (MI->isBundle()) {
330+
const MachineBasicBlock *MBB = MI->getParent();
331+
MachineBasicBlock::const_instr_iterator I = ++MI->getIterator();
332+
while (I != MBB->instr_end() && I->isInsideBundle()) {
333+
emitInstruction(&*I);
334+
++I;
335+
}
336+
return;
337+
}
329338

330339
switch (MI->getOpcode()) {
331340
default: break;

0 commit comments

Comments
 (0)