xref: /aosp_15_r20/external/llvm/test/MC/Disassembler/ARM/invalid-thumbv8.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc -disassemble %s -show-encoding -triple thumbv8 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker# Coprocessors other than CP10, CP11, CP14 and CP15 are undefined in ARMv8;
4*9880d681SAndroid Build Coastguard Worker# but in ARMv7, all these instructions are valid
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple thumbv7 -show-encoding -disassemble %s | FileCheck %s --check-prefix=CHECK-V7
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker[0x00 0xee 0x00 0x01]
9*9880d681SAndroid Build Coastguard Worker# CHECK-V7: cdp
10*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
11*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xee 0x00 0x01]
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker[0x00 0xee 0x00 0x0e]
14*9880d681SAndroid Build Coastguard Worker# CHECK-V7: cdp
15*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
16*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xee 0x00 0x0e]
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker[0x00 0xee 0x00 0x0f]
19*9880d681SAndroid Build Coastguard Worker# CHECK-V7: cdp
20*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
21*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xee 0x00 0x0f]
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker[0x00 0xfe 0x00 0x01]
24*9880d681SAndroid Build Coastguard Worker# CHECK-V7: cdp2
25*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
26*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xfe 0x00 0x01]
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Worker[0x00 0xfe 0x00 0x0e]
29*9880d681SAndroid Build Coastguard Worker# CHECK-V7: cdp2
30*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
31*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xfe 0x00 0x0e]
32*9880d681SAndroid Build Coastguard Worker
33*9880d681SAndroid Build Coastguard Worker[0x00 0xfe 0x00 0x0f]
34*9880d681SAndroid Build Coastguard Worker# CHECK-V7: cdp2
35*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
36*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xfe 0x00 0x0f]
37*9880d681SAndroid Build Coastguard Worker
38*9880d681SAndroid Build Coastguard Worker[0x00 0xee 0x10 0x01]
39*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcr
40*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
41*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xee 0x10 0x01]
42*9880d681SAndroid Build Coastguard Worker
43*9880d681SAndroid Build Coastguard Worker[0x00 0xfe 0x10 0x01]
44*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcr2
45*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
46*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xfe 0x10 0x01]
47*9880d681SAndroid Build Coastguard Worker
48*9880d681SAndroid Build Coastguard Worker[0x00 0xfe 0x10 0x0e]
49*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcr2
50*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
51*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xfe 0x10 0x0e]
52*9880d681SAndroid Build Coastguard Worker
53*9880d681SAndroid Build Coastguard Worker[0x00 0xfe 0x10 0x0f]
54*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcr2
55*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
56*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x00 0xfe 0x10 0x0f]
57*9880d681SAndroid Build Coastguard Worker
58*9880d681SAndroid Build Coastguard Worker[0x10 0xee 0x10 0x01]
59*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrc
60*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
61*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x10 0xee 0x10 0x01]
62*9880d681SAndroid Build Coastguard Worker
63*9880d681SAndroid Build Coastguard Worker[0x10 0xfe 0x10 0x01]
64*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrc2
65*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
66*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x10 0xfe 0x10 0x01]
67*9880d681SAndroid Build Coastguard Worker
68*9880d681SAndroid Build Coastguard Worker[0x10 0xfe 0x10 0x0e]
69*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrc2
70*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
71*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x10 0xfe 0x10 0x0e]
72*9880d681SAndroid Build Coastguard Worker
73*9880d681SAndroid Build Coastguard Worker[0x10 0xfe 0x10 0x0f]
74*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrc2
75*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
76*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x10 0xfe 0x10 0x0f]
77*9880d681SAndroid Build Coastguard Worker
78*9880d681SAndroid Build Coastguard Worker[0x40 0xec 0x00 0x01]
79*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcrr
80*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
81*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x40 0xec 0x00 0x01]
82*9880d681SAndroid Build Coastguard Worker
83*9880d681SAndroid Build Coastguard Worker[0x40 0xfc 0x00 0x01]
84*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcrr2
85*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
86*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x40 0xfc 0x00 0x01]
87*9880d681SAndroid Build Coastguard Worker
88*9880d681SAndroid Build Coastguard Worker[0x40 0xfc 0x00 0x0e]
89*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcrr2
90*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
91*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x40 0xfc 0x00 0x0e]
92*9880d681SAndroid Build Coastguard Worker
93*9880d681SAndroid Build Coastguard Worker[0x40 0xfc 0x00 0x0f]
94*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mcrr2
95*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
96*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x40 0xfc 0x00 0x0f]
97*9880d681SAndroid Build Coastguard Worker
98*9880d681SAndroid Build Coastguard Worker[0x50 0xec 0x00 0x01]
99*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrrc
100*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
101*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x50 0xec 0x00 0x01]
102*9880d681SAndroid Build Coastguard Worker
103*9880d681SAndroid Build Coastguard Worker[0x50 0xfc 0x00 0x0e]
104*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrrc2
105*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
106*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x50 0xfc 0x00 0x0e]
107*9880d681SAndroid Build Coastguard Worker
108*9880d681SAndroid Build Coastguard Worker[0x50 0xfc 0x00 0x0f]
109*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrrc2
110*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
111*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x50 0xfc 0x00 0x0f]
112*9880d681SAndroid Build Coastguard Worker
113*9880d681SAndroid Build Coastguard Worker[0x50 0xfc 0x00 0x01]
114*9880d681SAndroid Build Coastguard Worker# CHECK-V7: mrrc2
115*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
116*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x50 0xfc 0x00 0x01]
117*9880d681SAndroid Build Coastguard Worker
118*9880d681SAndroid Build Coastguard Worker[0x80 0xec 0x00 0x01]
119*9880d681SAndroid Build Coastguard Worker# CHECK-V7: stc
120*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
121*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x80 0xec 0x00 0x01]
122*9880d681SAndroid Build Coastguard Worker
123*9880d681SAndroid Build Coastguard Worker[0x80 0xec 0x00 0x0f]
124*9880d681SAndroid Build Coastguard Worker# CHECK-V7: stc
125*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
126*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x80 0xec 0x00 0x0f]
127*9880d681SAndroid Build Coastguard Worker
128*9880d681SAndroid Build Coastguard Worker[0x80 0xfc 0x00 0x01]
129*9880d681SAndroid Build Coastguard Worker# CHECK-V7: stc2
130*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
131*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x80 0xfc 0x00 0x01]
132*9880d681SAndroid Build Coastguard Worker
133*9880d681SAndroid Build Coastguard Worker[0x80 0xfc 0x00 0x0e]
134*9880d681SAndroid Build Coastguard Worker# CHECK-V7: stc2
135*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
136*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x80 0xfc 0x00 0x0e]
137*9880d681SAndroid Build Coastguard Worker
138*9880d681SAndroid Build Coastguard Worker[0x80 0xfc 0x00 0x0f]
139*9880d681SAndroid Build Coastguard Worker# CHECK-V7: stc2
140*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
141*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x80 0xfc 0x00 0x0f]
142*9880d681SAndroid Build Coastguard Worker
143*9880d681SAndroid Build Coastguard Worker[0x90 0xec 0x00 0x01]
144*9880d681SAndroid Build Coastguard Worker# CHECK-V7: ldc
145*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
146*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x90 0xec 0x00 0x01]
147*9880d681SAndroid Build Coastguard Worker
148*9880d681SAndroid Build Coastguard Worker[0x90 0xec 0x00 0x0f]
149*9880d681SAndroid Build Coastguard Worker# CHECK-V7: ldc
150*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
151*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x90 0xec 0x00 0x0f]
152*9880d681SAndroid Build Coastguard Worker
153*9880d681SAndroid Build Coastguard Worker[0x90 0xfc 0x00 0x01]
154*9880d681SAndroid Build Coastguard Worker# CHECK-V7: ldc2
155*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
156*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x90 0xfc 0x00 0x01]
157*9880d681SAndroid Build Coastguard Worker
158*9880d681SAndroid Build Coastguard Worker[0x90 0xfc 0x00 0x0e]
159*9880d681SAndroid Build Coastguard Worker# CHECK-V7: ldc2
160*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
161*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x90 0xfc 0x00 0x0e]
162*9880d681SAndroid Build Coastguard Worker
163*9880d681SAndroid Build Coastguard Worker[0x90 0xfc 0x00 0x0f]
164*9880d681SAndroid Build Coastguard Worker# CHECK-V7: ldc2
165*9880d681SAndroid Build Coastguard Worker# CHECK: invalid instruction encoding
166*9880d681SAndroid Build Coastguard Worker# CHECK-NEXT: [0x90 0xfc 0x00 0x0f]
167*9880d681SAndroid Build Coastguard Worker
168