diff options
author | Kevin Enderby <enderby@apple.com> | 2012-11-29 23:47:11 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2012-11-29 23:47:11 +0000 |
commit | 1c83093cd5f4f6d33e732c817bb5afd033531beb (patch) | |
tree | 4920542d91ab9d5b12cd1e3dc247176edf6a0346 /test | |
parent | 5cf823cd82778e3193a18feffeee69b2beb92c68 (diff) | |
download | external_llvm-1c83093cd5f4f6d33e732c817bb5afd033531beb.zip external_llvm-1c83093cd5f4f6d33e732c817bb5afd033531beb.tar.gz external_llvm-1c83093cd5f4f6d33e732c817bb5afd033531beb.tar.bz2 |
Fixed the arm disassembly of invalid BFI instructions to not build a bad MCInst
which would then cause an assert when printed. rdar://11437956
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/Disassembler/ARM/unpredictable-BFI.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/Disassembler/ARM/unpredictable-BFI.txt b/test/MC/Disassembler/ARM/unpredictable-BFI.txt new file mode 100644 index 0000000..a98f859 --- /dev/null +++ b/test/MC/Disassembler/ARM/unpredictable-BFI.txt @@ -0,0 +1,11 @@ +# RUN: llvm-mc --disassemble %s -triple=arm-apple-darwin9 2>&1 | FileCheck %s + +# rdar://11437956 + +# CHECK: warning: invalid instruction encoding +# CHECK: 0x90 0x00 0xc0 0xe7 +0x90 0x00 0xc0 0xe7 + +# CHECK: warning: invalid instruction encoding +# CHECK: 0x90 0x01 0xc0 0xe7 +0x90 0x01 0xc0 0xe7 |