[llvm-commits] [llvm] r120365 - /llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
Bill Wendling
isanbard at gmail.com
Mon Nov 29 16:18:30 PST 2010
Author: void
Date: Mon Nov 29 18:18:30 2010
New Revision: 120365
URL: http://llvm.org/viewvc/llvm-project?rev=120365&view=rev
Log:
Add some encoding for the adr instruction. Labels still need to be finished.
Modified:
llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
Modified: llvm/trunk/lib/Target/ARM/ARMInstrThumb.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrThumb.td?rev=120365&r1=120364&r2=120365&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrThumb.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrThumb.td Mon Nov 29 18:18:30 2010
@@ -1241,14 +1241,24 @@
// tLEApcrel - Load a pc-relative address into a register without offending the
// assembler.
let neverHasSideEffects = 1, isReMaterializable = 1 in
-def tLEApcrel : T1I<(outs tGPR:$dst), (ins i32imm:$label, pred:$p), IIC_iALUi,
- "adr${p}\t$dst, #$label", []>,
- T1Encoding<{1,0,1,0,0,?}>; // A6.2 & A8.6.10
+def tLEApcrel : T1I<(outs tGPR:$Rd), (ins i32imm:$label, pred:$p), IIC_iALUi,
+ "adr${p}\t$Rd, #$label", []>,
+ T1Encoding<{1,0,1,0,0,?}> {
+ // A6.2 & A8.6.10
+ bits<3> Rd;
+ let Inst{10-8} = Rd;
+ // FIXME: Add label encoding/fixup
+}
-def tLEApcrelJT : T1I<(outs tGPR:$dst),
+def tLEApcrelJT : T1I<(outs tGPR:$Rd),
(ins i32imm:$label, nohash_imm:$id, pred:$p),
- IIC_iALUi, "adr${p}\t$dst, #${label}_${id}", []>,
- T1Encoding<{1,0,1,0,0,?}>; // A6.2 & A8.6.10
+ IIC_iALUi, "adr${p}\t$Rd, #${label}_${id}", []>,
+ T1Encoding<{1,0,1,0,0,?}> {
+ // A6.2 & A8.6.10
+ bits<3> Rd;
+ let Inst{10-8} = Rd;
+ // FIXME: Add label encoding/fixup
+}
//===----------------------------------------------------------------------===//
// TLS Instructions
More information about the llvm-commits
mailing list