1# RUN: llvm-mc -triple=thumbv8m.base -disassemble < %s 2>%t | FileCheck %s 2# RUN: FileCheck < %t %s --check-prefix=CHECK-STDERR 3# RUN: llvm-mc -triple=thumbv8m.main -disassemble < %s | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-MAINLINE 4 50xef 0xf3 0x0a 0x83 6# CHECK: mrs r3, msplim 70xef 0xf3 0x0b 0x84 8# CHECK: mrs r4, psplim 90x8b 0xf3 0x0a 0x88 10# CHECK: msr msplim, r11 110x8c 0xf3 0x0b 0x88 12# CHECK: msr psplim, r12 13 140xef 0xf3 0x90 0x86 15# CHECK: mrs r6, primask_ns 160x88 0xf3 0x98 0x88 17# CHECK: msr sp_ns, r8 18 190xef 0xf3 0x8a 0x85 20# CHECK-STDERR: warning: invalid instruction encoding 21# CHECK-MAINLINE: mrs r5, msplim_ns 220x87 0xf3 0x93 0x88 23# CHECK-STDERR: warning: invalid instruction encoding 24# CHECK-MAINLINE: msr faultmask_ns, r7 25 26