aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-09-12 21:28:46 +0000
committerOwen Anderson <resistor@mac.com>2011-09-12 21:28:46 +0000
commitcd00dc6852d17aa24f667a1060d2de83cd6423f0 (patch)
treee1ba5f7381157954a94d1e64931ebcaf02095a6f /test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt
parent457d53d9cedb2add5bb80dc7c77a8bcc602877a2 (diff)
downloadexternal_llvm-cd00dc6852d17aa24f667a1060d2de83cd6423f0.zip
external_llvm-cd00dc6852d17aa24f667a1060d2de83cd6423f0.tar.gz
external_llvm-cd00dc6852d17aa24f667a1060d2de83cd6423f0.tar.bz2
Thumb2 POP's don't allow the PC as an operand, and PUSH's don't allow the SP either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt')
-rw-r--r--test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt b/test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt
new file mode 100644
index 0000000..b3daa9a
--- /dev/null
+++ b/test/MC/Disassembler/ARM/invalid-t2PUSH-thumb.txt
@@ -0,0 +1,5 @@
+# RUN: llvm-mc --disassemble %s -triple=thumbv7-apple-darwin9 |& grep {invalid instruction encoding}
+
+# SP and PC are not allowed in the register list on STM instructions in Thumb2.
+
+0x2d 0xe9 0xf7 0xb6