diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-04-15 22:49:08 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-04-15 22:49:08 +0000 |
commit | a704bc9354d8b03fd98da9bd7de5ae1dc49af961 (patch) | |
tree | bdfeafe4466852eacaf66c171d5c0f7f9f280f97 | |
parent | fc693036a4725396ba96a6c1ef3862a4c6b096cf (diff) | |
download | external_llvm-a704bc9354d8b03fd98da9bd7de5ae1dc49af961.zip external_llvm-a704bc9354d8b03fd98da9bd7de5ae1dc49af961.tar.gz external_llvm-a704bc9354d8b03fd98da9bd7de5ae1dc49af961.tar.bz2 |
A8.6.315 VLD3 (single 3-element structure to all lanes)
The a bit must be encoded as 0.
rdar://problem/9292625
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129618 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp | 6 | ||||
-rw-r--r-- | test/MC/Disassembler/ARM/invalid-VLD3DUPd32_UPD-thumb.txt | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp index b7a9a8b..942a74b 100644 --- a/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp +++ b/lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp @@ -2683,6 +2683,12 @@ static bool DisassembleNLdSt(MCInst &MI, unsigned Opcode, uint32_t insn, // Now we can calculate the alignment! if (a) alignment = elem * data_size; + } else { + if (a) { + // A8.6.315 VLD3 (single 3-element structure to all lanes) + // The a bit must be encoded as 0. + return false; + } } } else { // Multiple n-element structures with type encoded as Inst{11-8}. diff --git a/test/MC/Disassembler/ARM/invalid-VLD3DUPd32_UPD-thumb.txt b/test/MC/Disassembler/ARM/invalid-VLD3DUPd32_UPD-thumb.txt new file mode 100644 index 0000000..5fd0251 --- /dev/null +++ b/test/MC/Disassembler/ARM/invalid-VLD3DUPd32_UPD-thumb.txt @@ -0,0 +1,11 @@ +# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 |& grep {invalid instruction encoding} + +# Opcode=871 Name=VLD3DUPd32_UPD Format=ARM_FORMAT_NLdSt(30) +# 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| 0: 1: 0: 0| 1: 0: 1: 0| 0: 0: 1: 0| 0: 0: 1: 0| 1: 1: 1: 0| 1: 0: 0: 1| 0: 0: 1: 0| +# ------------------------------------------------------------------------------------------------- +# +# A8.6.315 VLD3 (single 3-element structure to all lanes) +# The a bit must be encoded as 0. +0xa2 0xf9 0x92 0x2e |