summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorTilmann Scheller <tilmann.scheller@googlemail.com>2013-07-16 21:52:34 +0000
committerTilmann Scheller <tilmann.scheller@googlemail.com>2013-07-16 21:52:34 +0000
commit305bb9044215a72d64fcbc753419ab71098dd724 (patch)
tree839a508ae8ecaf4a32dc12be11f6db9a77581140 /llvm/lib/Target
parentc87e752bb5d6b1a551b7584eb175d4f0fe39a14f (diff)
downloadbcm5719-llvm-305bb9044215a72d64fcbc753419ab71098dd724.tar.gz
bcm5719-llvm-305bb9044215a72d64fcbc753419ab71098dd724.zip
ARM: Add support for the Thumb2 PLI alternate literal form.
This adds an instruction alias to make the assembler recognize the alternate literal form: pli [PC, #+/-<imm>] See A8.8.129 in the ARM ARM (DDI 0406C.b). Fixes <rdar://problem/14403733>. llvm-svn: 186459
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrThumb2.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb2.td b/llvm/lib/Target/ARM/ARMInstrThumb2.td
index 8d15630ca53..19d76e5017b 100644
--- a/llvm/lib/Target/ARM/ARMInstrThumb2.td
+++ b/llvm/lib/Target/ARM/ARMInstrThumb2.td
@@ -4427,3 +4427,6 @@ def : t2InstAlias<"ldrsh${p}.w $Rt, $addr",
def : t2InstAlias<"add${p} $Rd, pc, $imm",
(t2ADR rGPR:$Rd, imm0_4095:$imm, pred:$p)>;
+
+// PLI with alternate literal form.
+def : t2InstAlias<"pli${p} $addr", (t2PLIpci t2ldr_pcrel_imm12:$addr, pred:$p)>;
OpenPOWER on IntegriCloud