1 # RUN: llvm-mc -disassemble %s -triple=thumbv7em 2>&1 | FileCheck %s
2 # RUN: llvm-mc -disassemble %s -triple=thumbv7m 2>&1 | FileCheck --check-prefix=CHECK --check-prefix=CHECK-V7M %s
4 #------------------------------------------------------------------------------
5 # Undefined encodings for mrs
6 #------------------------------------------------------------------------------
9 # CHECK: warning: potentially undefined instruction encoding
10 # CHECK-NEXT: [0xef 0xf3 0x80 0x80]
13 #------------------------------------------------------------------------------
14 # Undefined encodings for msr
15 #------------------------------------------------------------------------------
18 # CHECK: warning: potentially undefined instruction encoding
19 # CHECK-NEXT: [0x80 0xf3 0x00 0x80]
22 # invalid mask = '11' with SYSm not in {0..3}
23 # CHECK: warning: potentially undefined instruction encoding
24 # CHECK-NEXT: [0x80 0xf3 0x05 0x8c]
27 # invalid mask = '01' (ThumbV7M does not have the DSP extension)
28 # CHECK-V7M: warning: potentially undefined instruction encoding
29 # CHECK-V7M-NEXT: [0x80 0xf3 0x00 0x84]
33 # CHECK: warning: potentially undefined instruction encoding
34 # CHECK-NEXT: [0x80 0xf3 0x80 0x88]