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
6 # CHECK: mrs r3, msplim
8 # CHECK: mrs r4, psplim
10 # CHECK: msr msplim, r11
12 # CHECK: msr psplim, r12
15 # CHECK: mrs r6, primask_ns
17 # CHECK: msr sp_ns, r8
20 # CHECK-STDERR: warning: invalid instruction encoding
21 # CHECK-MAINLINE: mrs r5, msplim_ns
23 # CHECK-STDERR: warning: invalid instruction encoding
24 # CHECK-MAINLINE: msr faultmask_ns, r7