summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-12-18 02:13:59 +0000
committerBill Wendling <isanbard@gmail.com>2010-12-18 02:13:59 +0000
commit429bb1e2ccf1924358a8332376d38c018d10bca0 (patch)
tree2c7665a581846d21335bc12d578dcf5ff9c6914d /llvm/lib/Target
parent3b14763356ffca9d6eddfaf9219337fb7487f16e (diff)
downloadbcm5719-llvm-429bb1e2ccf1924358a8332376d38c018d10bca0.tar.gz
bcm5719-llvm-429bb1e2ccf1924358a8332376d38c018d10bca0.zip
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
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 1c5997e9598..ba88106ca57 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -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
OpenPOWER on IntegriCloud