Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / luti4.s
blobc784d823eba450a0c12a336c650e466f306c9637
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 luti4 z0.h, zt0, z0[0] // 11000000-11001010-00010000-00000000
16 // CHECK-INST: luti4 z0.h, zt0, z0[0]
17 // CHECK-ENCODING: [0x00,0x10,0xca,0xc0]
18 // CHECK-ERROR: instruction requires: sme2
19 // CHECK-UNKNOWN: c0ca1000 <unknown>
21 luti4 z21.h, zt0, z10[5] // 11000000-11001011-01010001-01010101
22 // CHECK-INST: luti4 z21.h, zt0, z10[5]
23 // CHECK-ENCODING: [0x55,0x51,0xcb,0xc0]
24 // CHECK-ERROR: instruction requires: sme2
25 // CHECK-UNKNOWN: c0cb5155 <unknown>
27 luti4 z23.h, zt0, z13[3] // 11000000-11001010-11010001-10110111
28 // CHECK-INST: luti4 z23.h, zt0, z13[3]
29 // CHECK-ENCODING: [0xb7,0xd1,0xca,0xc0]
30 // CHECK-ERROR: instruction requires: sme2
31 // CHECK-UNKNOWN: c0cad1b7 <unknown>
33 luti4 z31.h, zt0, z31[7] // 11000000-11001011-11010011-11111111
34 // CHECK-INST: luti4 z31.h, zt0, z31[7]
35 // CHECK-ENCODING: [0xff,0xd3,0xcb,0xc0]
36 // CHECK-ERROR: instruction requires: sme2
37 // CHECK-UNKNOWN: c0cbd3ff <unknown>
40 luti4 z0.s, zt0, z0[0] // 11000000-11001010-00100000-00000000
41 // CHECK-INST: luti4 z0.s, zt0, z0[0]
42 // CHECK-ENCODING: [0x00,0x20,0xca,0xc0]
43 // CHECK-ERROR: instruction requires: sme2
44 // CHECK-UNKNOWN: c0ca2000 <unknown>
46 luti4 z21.s, zt0, z10[5] // 11000000-11001011-01100001-01010101
47 // CHECK-INST: luti4 z21.s, zt0, z10[5]
48 // CHECK-ENCODING: [0x55,0x61,0xcb,0xc0]
49 // CHECK-ERROR: instruction requires: sme2
50 // CHECK-UNKNOWN: c0cb6155 <unknown>
52 luti4 z23.s, zt0, z13[3] // 11000000-11001010-11100001-10110111
53 // CHECK-INST: luti4 z23.s, zt0, z13[3]
54 // CHECK-ENCODING: [0xb7,0xe1,0xca,0xc0]
55 // CHECK-ERROR: instruction requires: sme2
56 // CHECK-UNKNOWN: c0cae1b7 <unknown>
58 luti4 z31.s, zt0, z31[7] // 11000000-11001011-11100011-11111111
59 // CHECK-INST: luti4 z31.s, zt0, z31[7]
60 // CHECK-ENCODING: [0xff,0xe3,0xcb,0xc0]
61 // CHECK-ERROR: instruction requires: sme2
62 // CHECK-UNKNOWN: c0cbe3ff <unknown>
65 luti4 z0.b, zt0, z0[0] // 11000000-11001010-00000000-00000000
66 // CHECK-INST: luti4 z0.b, zt0, z0[0]
67 // CHECK-ENCODING: [0x00,0x00,0xca,0xc0]
68 // CHECK-ERROR: instruction requires: sme2
69 // CHECK-UNKNOWN: c0ca0000 <unknown>
71 luti4 z21.b, zt0, z10[5] // 11000000-11001011-01000001-01010101
72 // CHECK-INST: luti4 z21.b, zt0, z10[5]
73 // CHECK-ENCODING: [0x55,0x41,0xcb,0xc0]
74 // CHECK-ERROR: instruction requires: sme2
75 // CHECK-UNKNOWN: c0cb4155 <unknown>
77 luti4 z23.b, zt0, z13[3] // 11000000-11001010-11000001-10110111
78 // CHECK-INST: luti4 z23.b, zt0, z13[3]
79 // CHECK-ENCODING: [0xb7,0xc1,0xca,0xc0]
80 // CHECK-ERROR: instruction requires: sme2
81 // CHECK-UNKNOWN: c0cac1b7 <unknown>
83 luti4 z31.b, zt0, z31[7] // 11000000-11001011-11000011-11111111
84 // CHECK-INST: luti4 z31.b, zt0, z31[7]
85 // CHECK-ENCODING: [0xff,0xc3,0xcb,0xc0]
86 // CHECK-ERROR: instruction requires: sme2
87 // CHECK-UNKNOWN: c0cbc3ff <unknown>
90 luti4 {z0.h - z1.h}, zt0, z0[0] // 11000000-10001010-01010000-00000000
91 // CHECK-INST: luti4 { z0.h, z1.h }, zt0, z0[0]
92 // CHECK-ENCODING: [0x00,0x50,0x8a,0xc0]
93 // CHECK-ERROR: instruction requires: sme2
94 // CHECK-UNKNOWN: c08a5000 <unknown>
96 luti4 {z20.h - z21.h}, zt0, z10[2] // 11000000-10001011-01010001-01010100
97 // CHECK-INST: luti4 { z20.h, z21.h }, zt0, z10[2]
98 // CHECK-ENCODING: [0x54,0x51,0x8b,0xc0]
99 // CHECK-ERROR: instruction requires: sme2
100 // CHECK-UNKNOWN: c08b5154 <unknown>
102 luti4 {z22.h - z23.h}, zt0, z13[1] // 11000000-10001010-11010001-10110110
103 // CHECK-INST: luti4 { z22.h, z23.h }, zt0, z13[1]
104 // CHECK-ENCODING: [0xb6,0xd1,0x8a,0xc0]
105 // CHECK-ERROR: instruction requires: sme2
106 // CHECK-UNKNOWN: c08ad1b6 <unknown>
108 luti4 {z30.h - z31.h}, zt0, z31[3] // 11000000-10001011-11010011-11111110
109 // CHECK-INST: luti4 { z30.h, z31.h }, zt0, z31[3]
110 // CHECK-ENCODING: [0xfe,0xd3,0x8b,0xc0]
111 // CHECK-ERROR: instruction requires: sme2
112 // CHECK-UNKNOWN: c08bd3fe <unknown>
115 luti4 {z0.s - z1.s}, zt0, z0[0] // 11000000-10001010-01100000-00000000
116 // CHECK-INST: luti4 { z0.s, z1.s }, zt0, z0[0]
117 // CHECK-ENCODING: [0x00,0x60,0x8a,0xc0]
118 // CHECK-ERROR: instruction requires: sme2
119 // CHECK-UNKNOWN: c08a6000 <unknown>
121 luti4 {z20.s - z21.s}, zt0, z10[2] // 11000000-10001011-01100001-01010100
122 // CHECK-INST: luti4 { z20.s, z21.s }, zt0, z10[2]
123 // CHECK-ENCODING: [0x54,0x61,0x8b,0xc0]
124 // CHECK-ERROR: instruction requires: sme2
125 // CHECK-UNKNOWN: c08b6154 <unknown>
127 luti4 {z22.s - z23.s}, zt0, z13[1] // 11000000-10001010-11100001-10110110
128 // CHECK-INST: luti4 { z22.s, z23.s }, zt0, z13[1]
129 // CHECK-ENCODING: [0xb6,0xe1,0x8a,0xc0]
130 // CHECK-ERROR: instruction requires: sme2
131 // CHECK-UNKNOWN: c08ae1b6 <unknown>
133 luti4 {z30.s - z31.s}, zt0, z31[3] // 11000000-10001011-11100011-11111110
134 // CHECK-INST: luti4 { z30.s, z31.s }, zt0, z31[3]
135 // CHECK-ENCODING: [0xfe,0xe3,0x8b,0xc0]
136 // CHECK-ERROR: instruction requires: sme2
137 // CHECK-UNKNOWN: c08be3fe <unknown>
140 luti4 {z0.b - z1.b}, zt0, z0[0] // 11000000-10001010-01000000-00000000
141 // CHECK-INST: luti4 { z0.b, z1.b }, zt0, z0[0]
142 // CHECK-ENCODING: [0x00,0x40,0x8a,0xc0]
143 // CHECK-ERROR: instruction requires: sme2
144 // CHECK-UNKNOWN: c08a4000 <unknown>
146 luti4 {z20.b - z21.b}, zt0, z10[2] // 11000000-10001011-01000001-01010100
147 // CHECK-INST: luti4 { z20.b, z21.b }, zt0, z10[2]
148 // CHECK-ENCODING: [0x54,0x41,0x8b,0xc0]
149 // CHECK-ERROR: instruction requires: sme2
150 // CHECK-UNKNOWN: c08b4154 <unknown>
152 luti4 {z22.b - z23.b}, zt0, z13[1] // 11000000-10001010-11000001-10110110
153 // CHECK-INST: luti4 { z22.b, z23.b }, zt0, z13[1]
154 // CHECK-ENCODING: [0xb6,0xc1,0x8a,0xc0]
155 // CHECK-ERROR: instruction requires: sme2
156 // CHECK-UNKNOWN: c08ac1b6 <unknown>
158 luti4 {z30.b - z31.b}, zt0, z31[3] // 11000000-10001011-11000011-11111110
159 // CHECK-INST: luti4 { z30.b, z31.b }, zt0, z31[3]
160 // CHECK-ENCODING: [0xfe,0xc3,0x8b,0xc0]
161 // CHECK-ERROR: instruction requires: sme2
162 // CHECK-UNKNOWN: c08bc3fe <unknown>
165 luti4 {z0.h - z3.h}, zt0, z0[0] // 11000000-10001010-10010000-00000000
166 // CHECK-INST: luti4 { z0.h - z3.h }, zt0, z0[0]
167 // CHECK-ENCODING: [0x00,0x90,0x8a,0xc0]
168 // CHECK-ERROR: instruction requires: sme2
169 // CHECK-UNKNOWN: c08a9000 <unknown>
171 luti4 {z20.h - z23.h}, zt0, z10[1] // 11000000-10001011-10010001-01010100
172 // CHECK-INST: luti4 { z20.h - z23.h }, zt0, z10[1]
173 // CHECK-ENCODING: [0x54,0x91,0x8b,0xc0]
174 // CHECK-ERROR: instruction requires: sme2
175 // CHECK-UNKNOWN: c08b9154 <unknown>
177 luti4 {z20.h - z23.h}, zt0, z13[0] // 11000000-10001010-10010001-10110100
178 // CHECK-INST: luti4 { z20.h - z23.h }, zt0, z13[0]
179 // CHECK-ENCODING: [0xb4,0x91,0x8a,0xc0]
180 // CHECK-ERROR: instruction requires: sme2
181 // CHECK-UNKNOWN: c08a91b4 <unknown>
183 luti4 {z28.h - z31.h}, zt0, z31[1] // 11000000-10001011-10010011-11111100
184 // CHECK-INST: luti4 { z28.h - z31.h }, zt0, z31[1]
185 // CHECK-ENCODING: [0xfc,0x93,0x8b,0xc0]
186 // CHECK-ERROR: instruction requires: sme2
187 // CHECK-UNKNOWN: c08b93fc <unknown>
190 luti4 {z0.s - z3.s}, zt0, z0[0] // 11000000-10001010-10100000-00000000
191 // CHECK-INST: luti4 { z0.s - z3.s }, zt0, z0[0]
192 // CHECK-ENCODING: [0x00,0xa0,0x8a,0xc0]
193 // CHECK-ERROR: instruction requires: sme2
194 // CHECK-UNKNOWN: c08aa000 <unknown>
196 luti4 {z20.s - z23.s}, zt0, z10[1] // 11000000-10001011-10100001-01010100
197 // CHECK-INST: luti4 { z20.s - z23.s }, zt0, z10[1]
198 // CHECK-ENCODING: [0x54,0xa1,0x8b,0xc0]
199 // CHECK-ERROR: instruction requires: sme2
200 // CHECK-UNKNOWN: c08ba154 <unknown>
202 luti4 {z20.s - z23.s}, zt0, z13[0] // 11000000-10001010-10100001-10110100
203 // CHECK-INST: luti4 { z20.s - z23.s }, zt0, z13[0]
204 // CHECK-ENCODING: [0xb4,0xa1,0x8a,0xc0]
205 // CHECK-ERROR: instruction requires: sme2
206 // CHECK-UNKNOWN: c08aa1b4 <unknown>
208 luti4 {z28.s - z31.s}, zt0, z31[1] // 11000000-10001011-10100011-11111100
209 // CHECK-INST: luti4 { z28.s - z31.s }, zt0, z31[1]
210 // CHECK-ENCODING: [0xfc,0xa3,0x8b,0xc0]
211 // CHECK-ERROR: instruction requires: sme2
212 // CHECK-UNKNOWN: c08ba3fc <unknown>