summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorTilmann Scheller <tilmann.scheller@googlemail.com>2013-07-19 16:18:56 +0000
committerTilmann Scheller <tilmann.scheller@googlemail.com>2013-07-19 16:18:56 +0000
commitcae5d5ea658e05091e66b742b5834f1896ff2f5d (patch)
treee9138a251e5d49a88863d981004eecfa3e250769 /test/MC
parent93c2125c3979bcb4656daf3c2fb5748fb3973e1a (diff)
downloadllvm-cae5d5ea658e05091e66b742b5834f1896ff2f5d.tar.gz
llvm-cae5d5ea658e05091e66b742b5834f1896ff2f5d.tar.bz2
llvm-cae5d5ea658e05091e66b742b5834f1896ff2f5d.tar.xz
ARM: Add instruction aliases for the Thumb2 PLD/PLDW (literal) alternate form.
See A8.8.127 in ARM DDI 0406C.b. Related to <rdar://problem/14403733>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186682 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/basic-thumb2-instructions.s3
-rw-r--r--test/MC/ARM/thumb2-pldw.s7
2 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ARM/basic-thumb2-instructions.s b/test/MC/ARM/basic-thumb2-instructions.s
index 50a505e1d3..2bd9a13338 100644
--- a/test/MC/ARM/basic-thumb2-instructions.s
+++ b/test/MC/ARM/basic-thumb2-instructions.s
@@ -1573,6 +1573,9 @@ _func:
@ FIXME: pld _foo @ encoding: [0x9f'A',0xf8'A',A,0xf0'A']
@ fixup A - offset: 0, value: _foo, kind: fixup_t2_ldst_pcrel_12
+ pld [pc,#-4095]
+@ CHECK: pld [pc, #-4095] @ encoding: [0x1f,0xf8,0xff,0xff]
+
@------------------------------------------------------------------------------
@ PLD(register)
diff --git a/test/MC/ARM/thumb2-pldw.s b/test/MC/ARM/thumb2-pldw.s
new file mode 100644
index 0000000000..7acbd39cbd
--- /dev/null
+++ b/test/MC/ARM/thumb2-pldw.s
@@ -0,0 +1,7 @@
+@ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -mattr=+mp -show-encoding < %s | FileCheck %s
+
+@------------------------------------------------------------------------------
+@ PLD(literal)
+@------------------------------------------------------------------------------
+ pldw [pc,#-4095]
+@ CHECK: pldw [pc, #-4095] @ encoding: [0x3f,0xf8,0xff,0xff]