summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMInstrThumb.td
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-22 22:03:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-22 22:03:29 +0000
commite270d4a4ddfabe1620f12df30ca930c35e127152 (patch)
treebc37faba3cda4ba6dce0db377657e121432880f4 /llvm/lib/Target/ARM/ARMInstrThumb.td
parentc51029325160b83d7cf5408626682be318f8545a (diff)
downloadbcm5719-llvm-e270d4a4ddfabe1620f12df30ca930c35e127152.tar.gz
bcm5719-llvm-e270d4a4ddfabe1620f12df30ca930c35e127152.zip
Use getTargetConstant instead of getConstant since it's meant as an constant operand.
llvm-svn: 76803
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb.td13
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td
index aea81e9ba2c..3cc0edb2968 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb.td
@@ -554,16 +554,17 @@ let usesCustomDAGSchedInserter = 1 in // Expanded by the scheduler.
// assembler.
let Defs = [CPSR] in {
def tLEApcrel : T1Ix2<(outs tGPR:$dst), (ins i32imm:$label),
- !strconcat(!strconcat(".set PCRELV${:uid}, ($label-(",
- "${:private}PCRELL${:uid}+4))\n"),
- !strconcat("\tmovs $dst, #PCRELV${:uid}\n",
- "${:private}PCRELL${:uid}:\n\tadd $dst, pc")),
+ !strconcat(!strconcat(".set ${:private}PCRELV${:uid}, ($label-(",
+ "${:private}PCRELL${:uid}+4))\n"),
+ !strconcat("\tmovs $dst, #${:private}PCRELV${:uid}\n",
+ "${:private}PCRELL${:uid}:\n\tadd $dst, pc")),
[]>;
def tLEApcrelJT : T1Ix2<(outs tGPR:$dst), (ins i32imm:$label, i32imm:$id),
- !strconcat(!strconcat(".set PCRELV${:uid}, (${label}_${id:no_hash}-(",
+ !strconcat(!strconcat(".set ${:private}PCRELV${:uid},"
+ " (${label}_${id:no_hash}-(",
"${:private}PCRELL${:uid}+4))\n"),
- !strconcat("\tmovs $dst, #PCRELV${:uid}\n",
+ !strconcat("\tmovs $dst, #${:private}PCRELV${:uid}\n",
"${:private}PCRELL${:uid}:\n\tadd $dst, pc")),
[]>;
}
OpenPOWER on IntegriCloud