1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple=thumbv6t2-none-eabi -disassemble < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2 2*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=-mp < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2 --check-prefix=V7 3*9880d681SAndroid Build Coastguard Worker# 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*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple=thumbv7m-none-eabi -disassemble < %s 2>/dev/null | FileCheck %s --check-prefix=V6T2 --check-prefix=V7 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker# 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*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=-mp < %s 2>&1 >/dev/null | FileCheck %s --check-prefix=MP-ERR 8*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple=thumbv7a-none-eabi -disassemble -mattr=+mp < %s 2>&1 >/dev/null 9*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -triple=thumbv7m-none-eabi -disassemble < %s 2>&1 >/dev/null | FileCheck %s --check-prefix=MP-ERR 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Worker# V6T2: pld [r1, #3] 12*9880d681SAndroid Build Coastguard Worker[0x91,0xf8,0x03,0xf0] 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker# V6T2: pld [r2, #-5] 15*9880d681SAndroid Build Coastguard Worker[0x12,0xf8,0x05,0xfc] 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Worker# MP: pldw [r3, #4] 18*9880d681SAndroid Build Coastguard Worker# MP-ERR: invalid instruction encoding 19*9880d681SAndroid Build Coastguard Worker# MP-ERR-NEXT: [0xb3,0xf8,0x04,0xf0] 20*9880d681SAndroid Build Coastguard Worker[0xb3,0xf8,0x04,0xf0] 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker# MP: pldw [r4, #-6] 23*9880d681SAndroid Build Coastguard Worker# MP-ERR: invalid instruction encoding 24*9880d681SAndroid Build Coastguard Worker# MP-ERR-NEXT: [0x34,0xf8,0x06,0xfc] 25*9880d681SAndroid Build Coastguard Worker[0x34,0xf8,0x06,0xfc] 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Worker# V6T2: pld [pc, #8] 28*9880d681SAndroid Build Coastguard Worker[0x9f,0xf8,0x08,0xf0] 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard Worker# V6T2: pld [pc, #-5] 31*9880d681SAndroid Build Coastguard Worker[0x1f,0xf8,0x05,0xf0] 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Worker# V6T2: pld [r5, r6] 34*9880d681SAndroid Build Coastguard Worker[0x15,0xf8,0x06,0xf0] 35*9880d681SAndroid Build Coastguard Worker 36*9880d681SAndroid Build Coastguard Worker# V6T2: pld [r7, r8, lsl #1] 37*9880d681SAndroid Build Coastguard Worker[0x17,0xf8,0x18,0xf0] 38*9880d681SAndroid Build Coastguard Worker 39*9880d681SAndroid Build Coastguard Worker# MP: pldw [r9, r10] 40*9880d681SAndroid Build Coastguard Worker# MP-ERR: invalid instruction encoding 41*9880d681SAndroid Build Coastguard Worker# MP-ERR-NEXT: [0x39,0xf8,0x0a,0xf0] 42*9880d681SAndroid Build Coastguard Worker[0x39,0xf8,0x0a,0xf0] 43*9880d681SAndroid Build Coastguard Worker 44*9880d681SAndroid Build Coastguard Worker# MP: pldw [r11, r12, lsl #2] 45*9880d681SAndroid Build Coastguard Worker# MP-ERR: invalid instruction encoding 46*9880d681SAndroid Build Coastguard Worker# MP-ERR-NEXT: [0x3b,0xf8,0x2c,0xf0] 47*9880d681SAndroid Build Coastguard Worker[0x3b,0xf8,0x2c,0xf0] 48*9880d681SAndroid Build Coastguard Worker 49*9880d681SAndroid Build Coastguard Worker# V7: pli [r1, #10] 50*9880d681SAndroid Build Coastguard Worker# V7-ERR: invalid instruction encoding 51*9880d681SAndroid Build Coastguard Worker# V7-ERR-NEXT: [0x91,0xf9,0x0a,0xf0] 52*9880d681SAndroid Build Coastguard Worker[0x91,0xf9,0x0a,0xf0] 53*9880d681SAndroid Build Coastguard Worker 54*9880d681SAndroid Build Coastguard Worker# V7: pli [r2, #-3] 55*9880d681SAndroid Build Coastguard Worker# V7-ERR: invalid instruction encoding 56*9880d681SAndroid Build Coastguard Worker# V7-ERR-NEXT: [0x12,0xf9,0x03,0xfc] 57*9880d681SAndroid Build Coastguard Worker[0x12,0xf9,0x03,0xfc] 58*9880d681SAndroid Build Coastguard Worker 59*9880d681SAndroid Build Coastguard Worker# V7: pli [pc, #6] 60*9880d681SAndroid Build Coastguard Worker# V7-ERR: invalid instruction encoding 61*9880d681SAndroid Build Coastguard Worker# V7-ERR-NEXT: [0x9f,0xf9,0x06,0xf0] 62*9880d681SAndroid Build Coastguard Worker[0x9f,0xf9,0x06,0xf0] 63*9880d681SAndroid Build Coastguard Worker 64*9880d681SAndroid Build Coastguard Worker# V7: pli [pc, #-8] 65*9880d681SAndroid Build Coastguard Worker# V7-ERR: invalid instruction encoding 66*9880d681SAndroid Build Coastguard Worker# V7-ERR-NEXT: [0x1f,0xf9,0x08,0xf0] 67*9880d681SAndroid Build Coastguard Worker[0x1f,0xf9,0x08,0xf0] 68*9880d681SAndroid Build Coastguard Worker 69*9880d681SAndroid Build Coastguard Worker# NO-ERR-NOT: invalid instruction encoding 70