summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-03-17 23:52:05 +0000
committerOwen Anderson <resistor@mac.com>2011-03-17 23:52:05 +0000
commit38aa83fa24f5aa2ba82377c4ca0c6b69c021af4c (patch)
tree0319991523dfbf61faddb1cd0614cafb3965d40c /llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
parent87716c93c2f73a8b64ef3cf5c99519c9216c2720 (diff)
downloadbcm5719-llvm-38aa83fa24f5aa2ba82377c4ca0c6b69c021af4c.tar.gz
bcm5719-llvm-38aa83fa24f5aa2ba82377c4ca0c6b69c021af4c.zip
There are two pseudos in this case that are Thumb mode, not one.
llvm-svn: 127840
Diffstat (limited to 'llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index cb2a89d01a7..4c89011d06d 100644
--- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
@@ -894,7 +894,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB,
const MachineOperand &MO1 = MI.getOperand(1);
const GlobalValue *GV = MO1.getGlobal();
unsigned TF = MO1.getTargetFlags();
- bool isARM = Opcode != ARM::t2MOV_ga_pcrel;
+ bool isARM = (Opcode != ARM::t2MOV_ga_pcrel && Opcode != ARM::t2MOV_ga_dyn);
bool isPIC = (Opcode != ARM::MOV_ga_dyn && Opcode != ARM::t2MOV_ga_dyn);
unsigned LO16Opc = isARM ? ARM::MOVi16_ga_pcrel : ARM::t2MOVi16_ga_pcrel;
unsigned HI16Opc = isARM ? ARM::MOVTi16_ga_pcrel : ARM::t2MOVTi16_ga_pcrel;
OpenPOWER on IntegriCloud