1 # RUN: not llvm-mc -disassemble %s -show-encoding -triple thumbv8 2>&1 | FileCheck %s
3 # Coprocessors other than CP10, CP11, CP14 and CP15 are undefined in ARMv8;
4 # but in ARMv7, all these instructions are valid
6 # RUN: llvm-mc -triple thumbv7 -show-encoding -disassemble %s | FileCheck %s --check-prefix=CHECK-V7
10 # CHECK: invalid instruction encoding
11 # CHECK-NEXT: [0x00 0xee 0x00 0x01]
15 # CHECK: invalid instruction encoding
16 # CHECK-NEXT: [0x00 0xee 0x00 0x0e]
20 # CHECK: invalid instruction encoding
21 # CHECK-NEXT: [0x00 0xee 0x00 0x0f]
25 # CHECK: invalid instruction encoding
26 # CHECK-NEXT: [0x00 0xfe 0x00 0x01]
30 # CHECK: invalid instruction encoding
31 # CHECK-NEXT: [0x00 0xfe 0x00 0x0e]
35 # CHECK: invalid instruction encoding
36 # CHECK-NEXT: [0x00 0xfe 0x00 0x0f]
40 # CHECK: invalid instruction encoding
41 # CHECK-NEXT: [0x00 0xee 0x10 0x01]
45 # CHECK: invalid instruction encoding
46 # CHECK-NEXT: [0x00 0xfe 0x10 0x01]
50 # CHECK: invalid instruction encoding
51 # CHECK-NEXT: [0x00 0xfe 0x10 0x0e]
55 # CHECK: invalid instruction encoding
56 # CHECK-NEXT: [0x00 0xfe 0x10 0x0f]
60 # CHECK: invalid instruction encoding
61 # CHECK-NEXT: [0x10 0xee 0x10 0x01]
65 # CHECK: invalid instruction encoding
66 # CHECK-NEXT: [0x10 0xfe 0x10 0x01]
70 # CHECK: invalid instruction encoding
71 # CHECK-NEXT: [0x10 0xfe 0x10 0x0e]
75 # CHECK: invalid instruction encoding
76 # CHECK-NEXT: [0x10 0xfe 0x10 0x0f]
80 # CHECK: invalid instruction encoding
81 # CHECK-NEXT: [0x40 0xec 0x00 0x01]
85 # CHECK: invalid instruction encoding
86 # CHECK-NEXT: [0x40 0xfc 0x00 0x01]
90 # CHECK: invalid instruction encoding
91 # CHECK-NEXT: [0x40 0xfc 0x00 0x0e]
95 # CHECK: invalid instruction encoding
96 # CHECK-NEXT: [0x40 0xfc 0x00 0x0f]
100 # CHECK: invalid instruction encoding
101 # CHECK-NEXT: [0x50 0xec 0x00 0x01]
103 [0x50 0xfc 0x00 0x0e]
105 # CHECK: invalid instruction encoding
106 # CHECK-NEXT: [0x50 0xfc 0x00 0x0e]
108 [0x50 0xfc 0x00 0x0f]
110 # CHECK: invalid instruction encoding
111 # CHECK-NEXT: [0x50 0xfc 0x00 0x0f]
113 [0x50 0xfc 0x00 0x01]
115 # CHECK: invalid instruction encoding
116 # CHECK-NEXT: [0x50 0xfc 0x00 0x01]
118 [0x80 0xec 0x00 0x01]
120 # CHECK: invalid instruction encoding
121 # CHECK-NEXT: [0x80 0xec 0x00 0x01]
123 [0x80 0xec 0x00 0x0f]
125 # CHECK: invalid instruction encoding
126 # CHECK-NEXT: [0x80 0xec 0x00 0x0f]
128 [0x80 0xfc 0x00 0x01]
130 # CHECK: invalid instruction encoding
131 # CHECK-NEXT: [0x80 0xfc 0x00 0x01]
133 [0x80 0xfc 0x00 0x0e]
135 # CHECK: invalid instruction encoding
136 # CHECK-NEXT: [0x80 0xfc 0x00 0x0e]
138 [0x80 0xfc 0x00 0x0f]
140 # CHECK: invalid instruction encoding
141 # CHECK-NEXT: [0x80 0xfc 0x00 0x0f]
143 [0x90 0xec 0x00 0x01]
145 # CHECK: invalid instruction encoding
146 # CHECK-NEXT: [0x90 0xec 0x00 0x01]
148 [0x90 0xec 0x00 0x0f]
150 # CHECK: invalid instruction encoding
151 # CHECK-NEXT: [0x90 0xec 0x00 0x0f]
153 [0x90 0xfc 0x00 0x01]
155 # CHECK: invalid instruction encoding
156 # CHECK-NEXT: [0x90 0xfc 0x00 0x01]
158 [0x90 0xfc 0x00 0x0e]
160 # CHECK: invalid instruction encoding
161 # CHECK-NEXT: [0x90 0xfc 0x00 0x0e]
163 [0x90 0xfc 0x00 0x0f]
165 # CHECK: invalid instruction encoding
166 # CHECK-NEXT: [0x90 0xfc 0x00 0x0f]