1 # RUN: not llvm-mc -triple=thumbv6t2-none-eabi -disassemble < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2
2 # RUN: not llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=-mp < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2 --check-prefix=V7
3 # RUN: llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=+mp < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2 --check-prefix=V7 --check-prefix=MP
4 # RUN: not llvm-mc -triple=thumbv7m-none-eabi -disassemble < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2 --check-prefix=V7
6 # RUN: not llvm-mc -triple=thumbv6t2-none-eabi -disassemble < %s 2>&1 >/dev/null | FileCheck %s --check-prefix=MP-ERR --check-prefix=V7-ERR
7 # RUN: not llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=-mp < %s 2>&1 >/dev/null | FileCheck %s --check-prefix=MP-ERR
8 # RUN: llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=+mp < %s 2>&1 >/dev/null
9 # RUN: not llvm-mc -triple=thumbv7m-none-eabi -disassemble < %s 2>&1 >/dev/null | FileCheck %s --check-prefix=MP-ERR
18 # MP-ERR: invalid instruction encoding
19 # MP-ERR-NEXT: [0xb3,0xf8,0x04,0xf0]
23 # MP-ERR: invalid instruction encoding
24 # MP-ERR-NEXT: [0x34,0xf8,0x06,0xfc]
36 # V6T2: pld [r7, r8, lsl #1]
40 # MP-ERR: invalid instruction encoding
41 # MP-ERR-NEXT: [0x39,0xf8,0x0a,0xf0]
44 # MP: pldw [r11, r12, lsl #2]
45 # MP-ERR: invalid instruction encoding
46 # MP-ERR-NEXT: [0x3b,0xf8,0x2c,0xf0]
50 # V7-ERR: invalid instruction encoding
51 # V7-ERR-NEXT: [0x91,0xf9,0x0a,0xf0]
55 # V7-ERR: invalid instruction encoding
56 # V7-ERR-NEXT: [0x12,0xf9,0x03,0xfc]
60 # V7-ERR: invalid instruction encoding
61 # V7-ERR-NEXT: [0x9f,0xf9,0x06,0xf0]
65 # V7-ERR: invalid instruction encoding
66 # V7-ERR-NEXT: [0x1f,0xf9,0x08,0xf0]
69 # NO-ERR-NOT: invalid instruction encoding