Allow only disassembling of M-class MSR masks that the assembler knows how to assembl...
[oota-llvm.git] / test / MC / Disassembler / ARM / invalid-thumb-MSR-MClass.txt
1 # RUN: not llvm-mc -disassemble %s -triple=thumbv7-apple-darwin9 -mcpu cortex-m3 2>&1 | FileCheck %s
2
3 #------------------------------------------------------------------------------
4 # Undefined encodings for mrs
5 #------------------------------------------------------------------------------
6
7 # invalid SYSm
8 # CHECK: warning: invalid instruction encoding
9 # CHECK-NEXT: [0xef 0xf3 0x80 0x80]
10 [0xef 0xf3 0x80 0x80]
11
12 #------------------------------------------------------------------------------
13 # Undefined encodings for msr
14 #------------------------------------------------------------------------------
15
16 # invalid mask = '00'
17 # CHECK: warning: invalid instruction encoding
18 # CHECK-NEXT: [0x80 0xf3 0x00 0x80]
19 [0x80 0xf3 0x00 0x80]
20
21 # invalid mask = '11' with SYSm not in {0..3}
22 # CHECK: warning: invalid instruction encoding
23 # CHECK-NEXT: [0x80 0xf3 0x04 0x8c]
24 [0x80 0xf3 0x04 0x8c]
25
26 # invalid mask = '01' (Cortex-M3 does not have the DSP extension)
27 # CHECK: warning: invalid instruction encoding
28 # CHECK-NEXT: [0x80 0xf3 0x00 0x84]
29 [0x80 0xf3 0x00 0x84]
30
31 # invalid SYSm
32 # CHECK: warning: invalid instruction encoding
33 # CHECK-NEXT: [0x80 0xf3 0x80 0x88]
34 [0x80 0xf3 0x80 0x88]