summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-13 21:04:32 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-13 21:04:32 +0000
commit471d73d5d387d52dc854145caca971dfd9fd506a (patch)
tree169b06d6d1be747e727f372e1b49b177c1aa835d /test/MC
parent5af60ce2a8d4dc820664c9dc5fbbcff428402c15 (diff)
downloadllvm-471d73d5d387d52dc854145caca971dfd9fd506a.tar.gz
llvm-471d73d5d387d52dc854145caca971dfd9fd506a.tar.bz2
llvm-471d73d5d387d52dc854145caca971dfd9fd506a.tar.xz
The LDR*T/STR*T (unpriviledged load/store) operations don't take SP or PC as Rt.
rdar://problem/9279440 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/Disassembler/ARM/invalid-t2LDRBT-thumb.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/invalid-t2LDRBT-thumb.txt b/test/MC/Disassembler/ARM/invalid-t2LDRBT-thumb.txt
new file mode 100644
index 0000000000..9befbd6b6f
--- /dev/null
+++ b/test/MC/Disassembler/ARM/invalid-t2LDRBT-thumb.txt
@@ -0,0 +1,10 @@
+# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding}
+
+# Opcode=1922 Name=t2LDRBT Format=ARM_FORMAT_THUMBFRM(25)
+# 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
+# -------------------------------------------------------------------------------------------------
+# | 1: 1: 1: 1| 1: 0: 0: 0| 0: 0: 0: 1| 0: 0: 0: 0| 1: 1: 1: 1| 1: 1: 1: 0| 0: 0: 0: 0| 0: 0: 1: 1|
+# -------------------------------------------------------------------------------------------------
+#
+# The unpriviledged Load/Store cannot have SP or PC as Rt.
+0x10 0xf8 0x3 0xfe