summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMInstrThumb2.td
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
commit898788c6bcc2abfe0e1c7b21c14394352963acd6 (patch)
treee7b74d1a66510171ee689d0ca48ac27d1c812eda /lib/Target/ARM/ARMInstrThumb2.td
parent61cf1580750eb2ce6c20ea98a57653ef1344e7bc (diff)
downloadllvm-898788c6bcc2abfe0e1c7b21c14394352963acd6.tar.gz
llvm-898788c6bcc2abfe0e1c7b21c14394352963acd6.tar.bz2
llvm-898788c6bcc2abfe0e1c7b21c14394352963acd6.tar.xz
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>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb2.td')
-rw-r--r--lib/Target/ARM/ARMInstrThumb2.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td
index 8d15630ca5..19d76e5017 100644
--- a/lib/Target/ARM/ARMInstrThumb2.td
+++ b/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)>;