forked from OSchip/llvm-project
r120333 changed the opcode for the Thumb1 stuff from ARM::tMOVr to
ARM::tMOVgpr2gpr. But this check didn't change. As a result, we were getting misaligned references to the jump table from an ADR instruction. There is a test case, but unfortunately it's sensitive to random code changes. <rdar://problem/8782223> llvm-svn: 122131
This commit is contained in:
parent
3b14763356
commit
429bb1e2cc
|
@ -1025,7 +1025,7 @@ void ARMAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||
OutStreamer.EmitInstruction(TmpInst);
|
||||
|
||||
// Make sure the Thumb jump table is 4-byte aligned.
|
||||
if (Opc == ARM::tMOVr)
|
||||
if (Opc == ARM::tMOVgpr2gpr)
|
||||
EmitAlignment(2);
|
||||
|
||||
// Output the data for the jump table itself
|
||||
|
|
Loading…
Reference in New Issue