diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-03-31 20:54:30 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-03-31 20:54:30 +0000 |
commit | 0c630b5f3883aa494eca732f08a547d694d3931a (patch) | |
tree | 71b3901c4ec03297dfbe83784160da638a280172 | |
parent | 463d358f1dfdd28a6900f2f109a160be71d2a8ef (diff) | |
download | external_llvm-0c630b5f3883aa494eca732f08a547d694d3931a.zip external_llvm-0c630b5f3883aa494eca732f08a547d694d3931a.tar.gz external_llvm-0c630b5f3883aa494eca732f08a547d694d3931a.tar.bz2 |
Add a test case for a malformed LDC/LDC2 instructions with PUDW = 0b0000, which
amounts to an UNDEFINED instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128668 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt b/test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt new file mode 100644 index 0000000..b966a9d --- /dev/null +++ b/test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt @@ -0,0 +1,11 @@ +# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 |& grep {invalid instruction encoding} + +# Opcode=0 Name=PHI Format=(42) +# 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: 0: 1| 1: 1: 0: 0| 0: 0: 0: 1| 1: 1: 1: 1| 1: 0: 1: 1| 0: 1: 0: 0| 1: 0: 0: 1| 0: 0: 1: 0| +# ------------------------------------------------------------------------------------------------- +# +# The bytes have 0b0000 for P,U,D,W; from A8.6.51, it is undefined. +0x92 0xb4 0x1f 0xdc + |