From 0c630b5f3883aa494eca732f08a547d694d3931a Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 31 Mar 2011 20:54:30 +0000 Subject: [PATCH] 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 --- test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/MC/Disassembler/ARM/invalid-LDC-form-arm.txt 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 00000000000..b966a9d773c --- /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 + -- 2.34.1