1 # RUN: not llvm-mc -triple armv8 -show-encoding -disassemble %s 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 armv7 -show-encoding -disassemble %s | FileCheck %s --check-prefix=CHECK-V7
10 # CHECK: invalid instruction encoding
11 # CHECK-NEXT: [0x00 0x01 0x00 0xee]
15 # CHECK: invalid instruction encoding
16 # CHECK-NEXT: [0x00 0x0e 0x00 0xee]
20 # CHECK: invalid instruction encoding
21 # CHECK-NEXT: [0x00 0x0f 0x00 0xee]
25 # CHECK: invalid instruction encoding
26 # CHECK-NEXT: [0x00 0x01 0x00 0xfe]
30 # CHECK: invalid instruction encoding
31 # CHECK-NEXT: [0x00 0x0e 0x00 0xfe]
35 # CHECK: invalid instruction encoding
36 # CHECK-NEXT: [0x00 0x0f 0x00 0xfe]
40 # CHECK: invalid instruction encoding
41 # CHECK-NEXT: [0x10 0x01 0x00 0xee]
45 # CHECK: invalid instruction encoding
46 # CHECK-NEXT: [0x10 0x01 0x00 0xfe]
50 # CHECK: invalid instruction encoding
51 # CHECK-NEXT: [0x10 0x0e 0x00 0xfe]
55 # CHECK: invalid instruction encoding
56 # CHECK-NEXT: [0x10 0x0f 0x00 0xfe]
60 # CHECK: invalid instruction encoding
61 # CHECK-NEXT: [0x10 0x01 0x10 0xee]
65 # CHECK: invalid instruction encoding
66 # CHECK-NEXT: [0x10 0x01 0x10 0xfe]
70 # CHECK: invalid instruction encoding
71 # CHECK-NEXT: [0x10 0x0e 0x10 0xfe]
75 # CHECK: invalid instruction encoding
76 # CHECK-NEXT: [0x10 0x0f 0x10 0xfe]
80 # CHECK: invalid instruction encoding
81 # CHECK-NEXT: [0x00 0x01 0x40 0xec]
85 # CHECK: invalid instruction encoding
86 # CHECK-NEXT: [0x00 0x01 0x40 0xfc]
90 # CHECK: invalid instruction encoding
91 # CHECK-NEXT: [0x00 0x0e 0x40 0xfc]
95 # CHECK: invalid instruction encoding
96 # CHECK-NEXT: [0x00 0x0f 0x40 0xfc]
100 # CHECK: invalid instruction encoding
101 # CHECK-NEXT: [0x00 0x01 0x50 0xec]
103 [0x00 0x0e 0x50 0xfc]
105 # CHECK: invalid instruction encoding
106 # CHECK-NEXT: [0x00 0x0e 0x50 0xfc]
108 [0x00 0x0f 0x50 0xfc]
110 # CHECK: invalid instruction encoding
111 # CHECK-NEXT: [0x00 0x0f 0x50 0xfc]
113 [0x00 0x01 0x50 0xfc]
115 # CHECK: invalid instruction encoding
116 # CHECK-NEXT: [0x00 0x01 0x50 0xfc]
118 [0x00 0x01 0x80 0xec]
120 # CHECK: invalid instruction encoding
121 # CHECK-NEXT: [0x00 0x01 0x80 0xec]
123 [0x00 0x0f 0x80 0xec]
125 # CHECK: invalid instruction encoding
126 # CHECK-NEXT: [0x00 0x0f 0x80 0xec]
128 [0x00 0x01 0x80 0xfc]
130 # CHECK: invalid instruction encoding
131 # CHECK-NEXT: [0x00 0x01 0x80 0xfc]
133 [0x00 0x0e 0x80 0xfc]
135 # CHECK: invalid instruction encoding
136 # CHECK-NEXT: [0x00 0x0e 0x80 0xfc]
138 [0x00 0x0f 0x80 0xfc]
140 # CHECK: invalid instruction encoding
141 # CHECK-NEXT: [0x00 0x0f 0x80 0xfc]
143 [0x00 0x01 0x90 0xec]
145 # CHECK: invalid instruction encoding
146 # CHECK-NEXT: [0x00 0x01 0x90 0xec]
148 [0x00 0x0f 0x90 0xec]
150 # CHECK: invalid instruction encoding
151 # CHECK-NEXT: [0x00 0x0f 0x90 0xec]
153 [0x00 0x01 0x90 0xfc]
155 # CHECK: invalid instruction encoding
156 # CHECK-NEXT: [0x00 0x01 0x90 0xfc]
158 [0x00 0x0e 0x90 0xfc]
160 # CHECK: invalid instruction encoding
161 # CHECK-NEXT: [0x00 0x0e 0x90 0xfc]
163 [0x00 0x0f 0x90 0xfc]
165 # CHECK: invalid instruction encoding
166 # CHECK-NEXT: [0x00 0x0f 0x90 0xfc]