From e270d4a4ddfabe1620f12df30ca930c35e127152 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 22 Jul 2009 22:03:29 +0000 Subject: Use getTargetConstant instead of getConstant since it's meant as an constant operand. llvm-svn: 76803 --- llvm/lib/Target/ARM/ARMInstrThumb.td | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMInstrThumb.td') 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")), []>; } -- cgit v1.2.3