Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / luti2.s
blobc622ed0a4285c9b8544d13fef63b84cbf42c5a27
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
6 // RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 luti2 z0.h, zt0, z0[0] // 11000000-11001100-00010000-00000000
16 // CHECK-INST: luti2 z0.h, zt0, z0[0]
17 // CHECK-ENCODING: [0x00,0x10,0xcc,0xc0]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: c0cc1000 <unknown>
21 luti2 z21.h, zt0, z10[5] // 11000000-11001101-01010001-01010101
22 // CHECK-INST: luti2 z21.h, zt0, z10[5]
23 // CHECK-ENCODING: [0x55,0x51,0xcd,0xc0]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: c0cd5155 <unknown>
27 luti2 z23.h, zt0, z13[3] // 11000000-11001100-11010001-10110111
28 // CHECK-INST: luti2 z23.h, zt0, z13[3]
29 // CHECK-ENCODING: [0xb7,0xd1,0xcc,0xc0]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: c0ccd1b7 <unknown>
33 luti2 z31.h, zt0, z31[15] // 11000000-11001111-11010011-11111111
34 // CHECK-INST: luti2 z31.h, zt0, z31[15]
35 // CHECK-ENCODING: [0xff,0xd3,0xcf,0xc0]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: c0cfd3ff <unknown>
40 luti2 z0.s, zt0, z0[0] // 11000000-11001100-00100000-00000000
41 // CHECK-INST: luti2 z0.s, zt0, z0[0]
42 // CHECK-ENCODING: [0x00,0x20,0xcc,0xc0]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: c0cc2000 <unknown>
46 luti2 z21.s, zt0, z10[5] // 11000000-11001101-01100001-01010101
47 // CHECK-INST: luti2 z21.s, zt0, z10[5]
48 // CHECK-ENCODING: [0x55,0x61,0xcd,0xc0]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: c0cd6155 <unknown>
52 luti2 z23.s, zt0, z13[3] // 11000000-11001100-11100001-10110111
53 // CHECK-INST: luti2 z23.s, zt0, z13[3]
54 // CHECK-ENCODING: [0xb7,0xe1,0xcc,0xc0]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: c0cce1b7 <unknown>
58 luti2 z31.s, zt0, z31[15] // 11000000-11001111-11100011-11111111
59 // CHECK-INST: luti2 z31.s, zt0, z31[15]
60 // CHECK-ENCODING: [0xff,0xe3,0xcf,0xc0]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: c0cfe3ff <unknown>
65 luti2 z0.b, zt0, z0[0] // 11000000-11001100-00000000-00000000
66 // CHECK-INST: luti2 z0.b, zt0, z0[0]
67 // CHECK-ENCODING: [0x00,0x00,0xcc,0xc0]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: c0cc0000 <unknown>
71 luti2 z21.b, zt0, z10[5] // 11000000-11001101-01000001-01010101
72 // CHECK-INST: luti2 z21.b, zt0, z10[5]
73 // CHECK-ENCODING: [0x55,0x41,0xcd,0xc0]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: c0cd4155 <unknown>
77 luti2 z23.b, zt0, z13[3] // 11000000-11001100-11000001-10110111
78 // CHECK-INST: luti2 z23.b, zt0, z13[3]
79 // CHECK-ENCODING: [0xb7,0xc1,0xcc,0xc0]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: c0ccc1b7 <unknown>
83 luti2 z31.b, zt0, z31[15] // 11000000-11001111-11000011-11111111
84 // CHECK-INST: luti2 z31.b, zt0, z31[15]
85 // CHECK-ENCODING: [0xff,0xc3,0xcf,0xc0]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: c0cfc3ff <unknown>
90 luti2 {z0.h - z1.h}, zt0, z0[0] // 11000000-10001100-01010000-00000000
91 // CHECK-INST: luti2 { z0.h, z1.h }, zt0, z0[0]
92 // CHECK-ENCODING: [0x00,0x50,0x8c,0xc0]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: c08c5000 <unknown>
96 luti2 {z20.h - z21.h}, zt0, z10[2] // 11000000-10001101-01010001-01010100
97 // CHECK-INST: luti2 { z20.h, z21.h }, zt0, z10[2]
98 // CHECK-ENCODING: [0x54,0x51,0x8d,0xc0]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: c08d5154 <unknown>
102 luti2 {z22.h - z23.h}, zt0, z13[1] // 11000000-10001100-11010001-10110110
103 // CHECK-INST: luti2 { z22.h, z23.h }, zt0, z13[1]
104 // CHECK-ENCODING: [0xb6,0xd1,0x8c,0xc0]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: c08cd1b6 <unknown>
108 luti2 {z30.h - z31.h}, zt0, z31[7] // 11000000-10001111-11010011-11111110
109 // CHECK-INST: luti2 { z30.h, z31.h }, zt0, z31[7]
110 // CHECK-ENCODING: [0xfe,0xd3,0x8f,0xc0]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: c08fd3fe <unknown>
115 luti2 {z0.s - z1.s}, zt0, z0[0] // 11000000-10001100-01100000-00000000
116 // CHECK-INST: luti2 { z0.s, z1.s }, zt0, z0[0]
117 // CHECK-ENCODING: [0x00,0x60,0x8c,0xc0]
118 // CHECK-ERROR: instruction requires: sme2
119 // CHECK-UNKNOWN: c08c6000 <unknown>
121 luti2 {z20.s - z21.s}, zt0, z10[2] // 11000000-10001101-01100001-01010100
122 // CHECK-INST: luti2 { z20.s, z21.s }, zt0, z10[2]
123 // CHECK-ENCODING: [0x54,0x61,0x8d,0xc0]
124 // CHECK-ERROR: instruction requires: sme2
125 // CHECK-UNKNOWN: c08d6154 <unknown>
127 luti2 {z22.s - z23.s}, zt0, z13[1] // 11000000-10001100-11100001-10110110
128 // CHECK-INST: luti2 { z22.s, z23.s }, zt0, z13[1]
129 // CHECK-ENCODING: [0xb6,0xe1,0x8c,0xc0]
130 // CHECK-ERROR: instruction requires: sme2
131 // CHECK-UNKNOWN: c08ce1b6 <unknown>
133 luti2 {z30.s - z31.s}, zt0, z31[7] // 11000000-10001111-11100011-11111110
134 // CHECK-INST: luti2 { z30.s, z31.s }, zt0, z31[7]
135 // CHECK-ENCODING: [0xfe,0xe3,0x8f,0xc0]
136 // CHECK-ERROR: instruction requires: sme2
137 // CHECK-UNKNOWN: c08fe3fe <unknown>
140 luti2 {z0.b - z1.b}, zt0, z0[0] // 11000000-10001100-01000000-00000000
141 // CHECK-INST: luti2 { z0.b, z1.b }, zt0, z0[0]
142 // CHECK-ENCODING: [0x00,0x40,0x8c,0xc0]
143 // CHECK-ERROR: instruction requires: sme2
144 // CHECK-UNKNOWN: c08c4000 <unknown>
146 luti2 {z20.b - z21.b}, zt0, z10[2] // 11000000-10001101-01000001-01010100
147 // CHECK-INST: luti2 { z20.b, z21.b }, zt0, z10[2]
148 // CHECK-ENCODING: [0x54,0x41,0x8d,0xc0]
149 // CHECK-ERROR: instruction requires: sme2
150 // CHECK-UNKNOWN: c08d4154 <unknown>
152 luti2 {z22.b - z23.b}, zt0, z13[1] // 11000000-10001100-11000001-10110110
153 // CHECK-INST: luti2 { z22.b, z23.b }, zt0, z13[1]
154 // CHECK-ENCODING: [0xb6,0xc1,0x8c,0xc0]
155 // CHECK-ERROR: instruction requires: sme2
156 // CHECK-UNKNOWN: c08cc1b6 <unknown>
158 luti2 {z30.b - z31.b}, zt0, z31[7] // 11000000-10001111-11000011-11111110
159 // CHECK-INST: luti2 { z30.b, z31.b }, zt0, z31[7]
160 // CHECK-ENCODING: [0xfe,0xc3,0x8f,0xc0]
161 // CHECK-ERROR: instruction requires: sme2
162 // CHECK-UNKNOWN: c08fc3fe <unknown>
165 luti2 {z0.h - z3.h}, zt0, z0[0] // 11000000-10001100-10010000-00000000
166 // CHECK-INST: luti2 { z0.h - z3.h }, zt0, z0[0]
167 // CHECK-ENCODING: [0x00,0x90,0x8c,0xc0]
168 // CHECK-ERROR: instruction requires: sme2
169 // CHECK-UNKNOWN: c08c9000 <unknown>
171 luti2 {z20.h - z23.h}, zt0, z10[1] // 11000000-10001101-10010001-01010100
172 // CHECK-INST: luti2 { z20.h - z23.h }, zt0, z10[1]
173 // CHECK-ENCODING: [0x54,0x91,0x8d,0xc0]
174 // CHECK-ERROR: instruction requires: sme2
175 // CHECK-UNKNOWN: c08d9154 <unknown>
177 luti2 {z20.h - z23.h}, zt0, z13[0] // 11000000-10001100-10010001-10110100
178 // CHECK-INST: luti2 { z20.h - z23.h }, zt0, z13[0]
179 // CHECK-ENCODING: [0xb4,0x91,0x8c,0xc0]
180 // CHECK-ERROR: instruction requires: sme2
181 // CHECK-UNKNOWN: c08c91b4 <unknown>
183 luti2 {z28.h - z31.h}, zt0, z31[3] // 11000000-10001111-10010011-11111100
184 // CHECK-INST: luti2 { z28.h - z31.h }, zt0, z31[3]
185 // CHECK-ENCODING: [0xfc,0x93,0x8f,0xc0]
186 // CHECK-ERROR: instruction requires: sme2
187 // CHECK-UNKNOWN: c08f93fc <unknown>
190 luti2 {z0.s - z3.s}, zt0, z0[0] // 11000000-10001100-10100000-00000000
191 // CHECK-INST: luti2 { z0.s - z3.s }, zt0, z0[0]
192 // CHECK-ENCODING: [0x00,0xa0,0x8c,0xc0]
193 // CHECK-ERROR: instruction requires: sme2
194 // CHECK-UNKNOWN: c08ca000 <unknown>
196 luti2 {z20.s - z23.s}, zt0, z10[1] // 11000000-10001101-10100001-01010100
197 // CHECK-INST: luti2 { z20.s - z23.s }, zt0, z10[1]
198 // CHECK-ENCODING: [0x54,0xa1,0x8d,0xc0]
199 // CHECK-ERROR: instruction requires: sme2
200 // CHECK-UNKNOWN: c08da154 <unknown>
202 luti2 {z20.s - z23.s}, zt0, z13[0] // 11000000-10001100-10100001-10110100
203 // CHECK-INST: luti2 { z20.s - z23.s }, zt0, z13[0]
204 // CHECK-ENCODING: [0xb4,0xa1,0x8c,0xc0]
205 // CHECK-ERROR: instruction requires: sme2
206 // CHECK-UNKNOWN: c08ca1b4 <unknown>
208 luti2 {z28.s - z31.s}, zt0, z31[3] // 11000000-10001111-10100011-11111100
209 // CHECK-INST: luti2 { z28.s - z31.s }, zt0, z31[3]
210 // CHECK-ENCODING: [0xfc,0xa3,0x8f,0xc0]
211 // CHECK-ERROR: instruction requires: sme2
212 // CHECK-UNKNOWN: c08fa3fc <unknown>
215 luti2 {z0.b - z3.b}, zt0, z0[0] // 11000000-10001100-10000000-00000000
216 // CHECK-INST: luti2 { z0.b - z3.b }, zt0, z0[0]
217 // CHECK-ENCODING: [0x00,0x80,0x8c,0xc0]
218 // CHECK-ERROR: instruction requires: sme2
219 // CHECK-UNKNOWN: c08c8000 <unknown>
221 luti2 {z20.b - z23.b}, zt0, z10[1] // 11000000-10001101-10000001-01010100
222 // CHECK-INST: luti2 { z20.b - z23.b }, zt0, z10[1]
223 // CHECK-ENCODING: [0x54,0x81,0x8d,0xc0]
224 // CHECK-ERROR: instruction requires: sme2
225 // CHECK-UNKNOWN: c08d8154 <unknown>
227 luti2 {z20.b - z23.b}, zt0, z13[0] // 11000000-10001100-10000001-10110100
228 // CHECK-INST: luti2 { z20.b - z23.b }, zt0, z13[0]
229 // CHECK-ENCODING: [0xb4,0x81,0x8c,0xc0]
230 // CHECK-ERROR: instruction requires: sme2
231 // CHECK-UNKNOWN: c08c81b4 <unknown>
233 luti2 {z28.b - z31.b}, zt0, z31[3] // 11000000-10001111-10000011-11111100
234 // CHECK-INST: luti2 { z28.b - z31.b }, zt0, z31[3]
235 // CHECK-ENCODING: [0xfc,0x83,0x8f,0xc0]
236 // CHECK-ERROR: instruction requires: sme2
237 // CHECK-UNKNOWN: c08f83fc <unknown>