[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / vop3-gfx9.s
blobac64feea16d52edd7843fdb2595a02b0213a6fdb
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefix=SICI %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s | FileCheck -check-prefix=SICI %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI %s
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck --check-prefix=GFX9 %s
5 // RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefixes=NOSICI,NOGCN --implicit-check-not=error: %s
6 // RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefixes=NOSICI,NOGCN --implicit-check-not=error: %s
7 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefixes=NOVI,NOGCN --implicit-check-not=error: %s
8 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefix=NOGFX9 --implicit-check-not=error: %s
10 v_lshl_add_u32 v1, v2, v3, v4
11 // GFX9: v_lshl_add_u32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xfd,0xd1,0x02,0x07,0x12,0x04]
12 // NOGCN: :1: error: instruction not supported on this GPU
14 v_add_lshl_u32 v1, v2, v3, v4
15 // GFX9: v_add_lshl_u32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xfe,0xd1,0x02,0x07,0x12,0x04]
16 // NOGCN: :1: error: instruction not supported on this GPU
18 v_add3_u32 v1, v2, v3, v4
19 // GFX9: v_add3_u32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xff,0xd1,0x02,0x07,0x12,0x04]
20 // NOGCN: :1: error: instruction not supported on this GPU
22 v_lshl_or_b32 v1, v2, v3, v4
23 // GFX9: v_lshl_or_b32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0x00,0xd2,0x02,0x07,0x12,0x04]
24 // NOGCN: :1: error: instruction not supported on this GPU
26 v_and_or_b32 v1, v2, v3, v4
27 // GFX9: v_and_or_b32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0x01,0xd2,0x02,0x07,0x12,0x04]
28 // NOGCN: :1: error: instruction not supported on this GPU
30 v_or3_b32 v1, v2, v3, v4
31 // GFX9: v_or3_b32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0x02,0xd2,0x02,0x07,0x12,0x04]
32 // NOGCN: :1: error: instruction not supported on this GPU
34 v_pack_b32_f16 v1, v2, v3
35 // GFX9: v_pack_b32_f16 v1, v2, v3 ; encoding: [0x01,0x00,0xa0,0xd2,0x02,0x07,0x02,0x00]
36 // NOGCN: :1: error: instruction not supported on this GPU
38 v_pack_b32_f16 v5, v1, v2 op_sel:[1,0,0]
39 // GFX9: v_pack_b32_f16 v5, v1, v2 op_sel:[1,0,0] ; encoding: [0x05,0x08,0xa0,0xd2,0x01,0x05,0x02,0x00]
40 // NOGCN: error: instruction not supported on this GPU
42 v_pack_b32_f16 v5, v1, v2 op_sel:[0,1,0]
43 // GFX9: v_pack_b32_f16 v5, v1, v2 op_sel:[0,1,0] ; encoding: [0x05,0x10,0xa0,0xd2,0x01,0x05,0x02,0x00]
44 // NOGCN: error: instruction not supported on this GPU
46 v_pack_b32_f16 v5, v1, v2 op_sel:[0,0,1]
47 // GFX9: v_pack_b32_f16 v5, v1, v2 op_sel:[0,0,1] ; encoding: [0x05,0x40,0xa0,0xd2,0x01,0x05,0x02,0x00]
48 // NOGCN: error: instruction not supported on this GPU
50 v_xad_u32 v1, v2, v3, v4
51 // GFX9: v_xad_u32 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf3,0xd1,0x02,0x07,0x12,0x04]
52 // NOGCN: :1: error: instruction not supported on this GPU
54 v_min3_f16 v1, v2, v3, v4
55 // GFX9: v_min3_f16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf4,0xd1,0x02,0x07,0x12,0x04]
56 // NOGCN: :1: error: instruction not supported on this GPU
58 v_min3_i16 v1, v2, v3, v4
59 // GFX9: v_min3_i16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf5,0xd1,0x02,0x07,0x12,0x04]
60 // NOGCN: :1: error: instruction not supported on this GPU
62 v_min3_u16 v1, v2, v3, v4
63 // GFX9: v_min3_u16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf6,0xd1,0x02,0x07,0x12,0x04]
64 // NOGCN: :1: error: instruction not supported on this GPU
66 v_max3_f16 v1, v2, v3, v4
67 // GFX9: v_max3_f16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf7,0xd1,0x02,0x07,0x12,0x04]
68 // NOGCN: :1: error: instruction not supported on this GPU
70 v_max3_f16 v5, v1, v2, v3 op_sel:[0,0,0,0]
71 // GFX9: v_max3_f16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0xf7,0xd1,0x01,0x05,0x0e,0x04]
72 // NOGCN: error: instruction not supported on this GPU
74 v_max3_f16 v5, v1, v2, v3 op_sel:[1,0,0,0]
75 // GFX9: v_max3_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0xf7,0xd1,0x01,0x05,0x0e,0x04]
76 // NOGCN: error: instruction not supported on this GPU
78 v_max3_f16 v5, v1, v2, v3 op_sel:[0,1,0,0]
79 // GFX9: v_max3_f16 v5, v1, v2, v3 op_sel:[0,1,0,0] ; encoding: [0x05,0x10,0xf7,0xd1,0x01,0x05,0x0e,0x04]
80 // NOGCN: error: instruction not supported on this GPU
82 v_max3_f16 v5, v1, v2, v3 op_sel:[0,0,1,0]
83 // GFX9: v_max3_f16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0xf7,0xd1,0x01,0x05,0x0e,0x04]
84 // NOGCN: error: instruction not supported on this GPU
86 v_max3_f16 v5, v1, v2, v3 op_sel:[0,0,0,1]
87 // GFX9: v_max3_f16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0xf7,0xd1,0x01,0x05,0x0e,0x04]
88 // NOGCN: error: instruction not supported on this GPU
90 v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1]
91 // GFX9: v_max3_f16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0xf7,0xd1,0x01,0x05,0x0e,0x04]
92 // NOGCN: error: instruction not supported on this GPU
94 v_max3_i16 v1, v2, v3, v4
95 // GFX9: v_max3_i16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf8,0xd1,0x02,0x07,0x12,0x04]
96 // NOGCN: :1: error: instruction not supported on this GPU
98 v_max3_i16 v5, v1, v2, v3 op_sel:[0,0,0,0]
99 // GFX9: v_max3_i16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0xf8,0xd1,0x01,0x05,0x0e,0x04]
100 // NOGCN: error: instruction not supported on this GPU
102 v_max3_i16 v5, v1, v2, v3 op_sel:[1,0,0,0]
103 // GFX9: v_max3_i16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0xf8,0xd1,0x01,0x05,0x0e,0x04]
104 // NOGCN: error: instruction not supported on this GPU
106 v_max3_i16 v5, v1, v2, v3 op_sel:[0,1,0,0]
107 // GFX9: v_max3_i16 v5, v1, v2, v3 op_sel:[0,1,0,0] ; encoding: [0x05,0x10,0xf8,0xd1,0x01,0x05,0x0e,0x04]
108 // NOGCN: error: instruction not supported on this GPU
110 v_max3_i16 v5, v1, v2, v3 op_sel:[0,0,1,0]
111 // GFX9: v_max3_i16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0xf8,0xd1,0x01,0x05,0x0e,0x04]
112 // NOGCN: error: instruction not supported on this GPU
114 v_max3_i16 v5, v1, v2, v3 op_sel:[0,0,0,1]
115 // GFX9: v_max3_i16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0xf8,0xd1,0x01,0x05,0x0e,0x04]
116 // NOGCN: error: instruction not supported on this GPU
118 v_max3_i16 v5, v1, v2, v3 op_sel:[1,1,1,1]
119 // GFX9: v_max3_i16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0xf8,0xd1,0x01,0x05,0x0e,0x04]
120 // NOGCN: error: instruction not supported on this GPU
122 v_max3_u16 v1, v2, v3, v4
123 // GFX9: v_max3_u16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xf9,0xd1,0x02,0x07,0x12,0x04]
124 // NOGCN: :1: error: instruction not supported on this GPU
126 v_med3_f16 v1, v2, v3, v4
127 // GFX9: v_med3_f16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xfa,0xd1,0x02,0x07,0x12,0x04]
128 // NOGCN: :1: error: instruction not supported on this GPU
130 v_med3_i16 v1, v2, v3, v4
131 // GFX9: v_med3_i16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xfb,0xd1,0x02,0x07,0x12,0x04]
132 // NOGCN: :1: error: instruction not supported on this GPU
134 v_med3_u16 v1, v2, v3, v4
135 // GFX9: v_med3_u16 v1, v2, v3, v4 ; encoding: [0x01,0x00,0xfc,0xd1,0x02,0x07,0x12,0x04]
136 // NOGCN: :1: error: instruction not supported on this GPU
138 v_mad_u32_u16 v5, v1, v2, v3
139 // GFX9: v_mad_u32_u16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0xf1,0xd1,0x01,0x05,0x0e,0x04]
140 // NOGCN: error: instruction not supported on this GPU
142 v_mad_u32_u16 v5, v1, v2, v3 op_sel:[1,0,0,0]
143 // GFX9: v_mad_u32_u16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0xf1,0xd1,0x01,0x05,0x0e,0x04]
144 // NOGCN: error: instruction not supported on this GPU
146 v_mad_u32_u16 v5, v1, v2, v3 op_sel:[0,1,0,0]
147 // GFX9: v_mad_u32_u16 v5, v1, v2, v3 op_sel:[0,1,0,0] ; encoding: [0x05,0x10,0xf1,0xd1,0x01,0x05,0x0e,0x04]
148 // NOGCN: error: instruction not supported on this GPU
150 v_mad_u32_u16 v5, v1, v2, v3 op_sel:[0,0,1,0]
151 // GFX9: v_mad_u32_u16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0xf1,0xd1,0x01,0x05,0x0e,0x04]
152 // NOGCN: error: instruction not supported on this GPU
154 v_mad_u32_u16 v5, v1, v2, v3 op_sel:[0,0,0,1]
155 // GFX9: v_mad_u32_u16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0xf1,0xd1,0x01,0x05,0x0e,0x04]
156 // NOGCN: error: instruction not supported on this GPU
158 v_mad_u32_u16 v5, v1, v2, v3 op_sel:[1,1,1,1]
159 // GFX9: v_mad_u32_u16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0xf1,0xd1,0x01,0x05,0x0e,0x04]
160 // NOGCN: error: instruction not supported on this GPU
162 v_mad_i32_i16 v5, v1, v2, v3
163 // GFX9: v_mad_i32_i16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0xf2,0xd1,0x01,0x05,0x0e,0x04]
164 // NOGCN: error: instruction not supported on this GPU
166 v_mad_i32_i16 v5, v1, v2, v3 op_sel:[0,0,0,1]
167 // GFX9: v_mad_i32_i16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0xf2,0xd1,0x01,0x05,0x0e,0x04]
168 // NOGCN: error: instruction not supported on this GPU
170 v_cvt_pknorm_i16_f16 v5, v1, v2
171 // GFX9: v_cvt_pknorm_i16_f16 v5, v1, v2 ; encoding: [0x05,0x00,0x99,0xd2,0x01,0x05,0x02,0x00]
172 // NOGCN: error: instruction not supported on this GPU
174 v_cvt_pknorm_i16_f16 v5, -v1, v2
175 // GFX9: v_cvt_pknorm_i16_f16 v5, -v1, v2 ; encoding: [0x05,0x00,0x99,0xd2,0x01,0x05,0x02,0x20]
176 // NOGCN: error: instruction not supported on this GPU
178 v_cvt_pknorm_i16_f16 v5, v1, -v2
179 // GFX9: v_cvt_pknorm_i16_f16 v5, v1, -v2 ; encoding: [0x05,0x00,0x99,0xd2,0x01,0x05,0x02,0x40]
180 // NOGCN: error: instruction not supported on this GPU
182 v_cvt_pknorm_i16_f16 v5, -v1, -v2
183 // GFX9: v_cvt_pknorm_i16_f16 v5, -v1, -v2 ; encoding: [0x05,0x00,0x99,0xd2,0x01,0x05,0x02,0x60]
184 // NOGCN: error: instruction not supported on this GPU
186 v_cvt_pknorm_i16_f16 v5, |v1|, v2
187 // GFX9: v_cvt_pknorm_i16_f16 v5, |v1|, v2 ; encoding: [0x05,0x01,0x99,0xd2,0x01,0x05,0x02,0x00]
188 // NOGCN: error: instruction not supported on this GPU
190 v_cvt_pknorm_i16_f16 v5, v1, |v2|
191 // GFX9: v_cvt_pknorm_i16_f16 v5, v1, |v2| ; encoding: [0x05,0x02,0x99,0xd2,0x01,0x05,0x02,0x00]
192 // NOGCN: error: instruction not supported on this GPU
194 v_cvt_pknorm_i16_f16 v5, v1, v2 op_sel:[0,0,0]
195 // GFX9: v_cvt_pknorm_i16_f16 v5, v1, v2 ; encoding: [0x05,0x00,0x99,0xd2,0x01,0x05,0x02,0x00]
196 // NOGCN: error: instruction not supported on this GPU
198 v_cvt_pknorm_i16_f16 v5, v1, v2 op_sel:[1,0,0]
199 // GFX9: v_cvt_pknorm_i16_f16 v5, v1, v2 op_sel:[1,0,0] ; encoding: [0x05,0x08,0x99,0xd2,0x01,0x05,0x02,0x00]
200 // NOGCN: error: instruction not supported on this GPU
202 v_cvt_pknorm_i16_f16 v5, v1, v2 op_sel:[1,1,1]
203 // GFX9: v_cvt_pknorm_i16_f16 v5, v1, v2 op_sel:[1,1,1] ; encoding: [0x05,0x58,0x99,0xd2,0x01,0x05,0x02,0x00]
204 // NOGCN: error: instruction not supported on this GPU
206 v_cvt_pknorm_u16_f16 v5, -v1, -v2
207 // GFX9: v_cvt_pknorm_u16_f16 v5, -v1, -v2 ; encoding: [0x05,0x00,0x9a,0xd2,0x01,0x05,0x02,0x60]
208 // NOGCN: error: instruction not supported on this GPU
210 v_cvt_pknorm_u16_f16 v5, |v1|, |v2|
211 // GFX9: v_cvt_pknorm_u16_f16 v5, |v1|, |v2| ; encoding: [0x05,0x03,0x9a,0xd2,0x01,0x05,0x02,0x00]
212 // NOGCN: error: instruction not supported on this GPU
214 v_cvt_pknorm_u16_f16 v5, v1, v2 op_sel:[1,1,1]
215 // GFX9: v_cvt_pknorm_u16_f16 v5, v1, v2 op_sel:[1,1,1] ; encoding: [0x05,0x58,0x9a,0xd2,0x01,0x05,0x02,0x00]
216 // NOGCN: error: instruction not supported on this GPU
218 v_add_i16 v5, v1, v2
219 // GFX9: v_add_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x9e,0xd2,0x01,0x05,0x02,0x00]
220 // NOGCN: error: instruction not supported on this GPU
222 v_add_i16 v5, v1, v2 op_sel:[1,1,1]
223 // GFX9: v_add_i16 v5, v1, v2 op_sel:[1,1,1] ; encoding: [0x05,0x58,0x9e,0xd2,0x01,0x05,0x02,0x00]
224 // NOGCN: error: instruction not supported on this GPU
226 v_sub_i16 v5, v1, v2
227 // GFX9: v_sub_i16 v5, v1, v2 ; encoding: [0x05,0x00,0x9f,0xd2,0x01,0x05,0x02,0x00]
228 // NOGCN: error: instruction not supported on this GPU
230 v_sub_i16 v5, v1, v2 op_sel:[1,1,1]
231 // GFX9: v_sub_i16 v5, v1, v2 op_sel:[1,1,1] ; encoding: [0x05,0x58,0x9f,0xd2,0x01,0x05,0x02,0x00]
232 // NOGCN: error: instruction not supported on this GPU
234 v_sub_i16 v5, v1, v2 clamp
235 // GFX9: v_sub_i16 v5, v1, v2 clamp ; encoding: [0x05,0x80,0x9f,0xd2,0x01,0x05,0x02,0x00]
236 // NOGCN: error: instruction not supported on this GPU
238 v_fma_f16_e64 v5, v1, v2, v3
239 // GFX9: v_fma_f16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0x06,0xd2,0x01,0x05,0x0e,0x04]
240 // NOSICI: error: instruction not supported on this GPU
241 // VI: v_fma_f16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x04]
243 v_fma_f16 v5, v1, -v2, v3
244 // GFX9: v_fma_f16 v5, v1, -v2, v3 ; encoding: [0x05,0x00,0x06,0xd2,0x01,0x05,0x0e,0x44]
245 // NOSICI: error: instruction not supported on this GPU
246 // VI: v_fma_f16 v5, v1, -v2, v3 ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x44]
248 v_fma_f16 v5, v1, v2, |v3|
249 // GFX9: v_fma_f16 v5, v1, v2, |v3| ; encoding: [0x05,0x04,0x06,0xd2,0x01,0x05,0x0e,0x04]
250 // NOSICI: error: instruction not supported on this GPU
251 // VI: v_fma_f16 v5, v1, v2, |v3| ; encoding: [0x05,0x04,0xee,0xd1,0x01,0x05,0x0e,0x04]
253 v_fma_f16 v5, v1, v2, v3 clamp
254 // GFX9: v_fma_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x06,0xd2,0x01,0x05,0x0e,0x04]
255 // NOSICI: error: instruction not supported on this GPU
256 // VI: v_fma_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xee,0xd1,0x01,0x05,0x0e,0x04]
258 v_fma_f16 v5, v1, v2, v3 op_sel:[1,0,0,0]
259 // GFX9: v_fma_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x06,0xd2,0x01,0x05,0x0e,0x04]
260 // NOSICI: error: instruction not supported on this GPU
261 // NOVI: error: operands are not valid for this GPU or mode
263 v_fma_f16 v5, v1, v2, v3 op_sel:[0,1,0,0]
264 // GFX9: v_fma_f16 v5, v1, v2, v3 op_sel:[0,1,0,0] ; encoding: [0x05,0x10,0x06,0xd2,0x01,0x05,0x0e,0x04]
265 // NOSICI: error: instruction not supported on this GPU
266 // NOVI: error: operands are not valid for this GPU or mode
268 v_fma_f16 v5, v1, v2, v3 op_sel:[1,1,1,1]
269 // GFX9: v_fma_f16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x06,0xd2,0x01,0x05,0x0e,0x04]
270 // NOSICI: error: instruction not supported on this GPU
271 // NOVI: error: operands are not valid for this GPU or mode
273 v_fma_legacy_f16_e64 v5, v1, v2, v3
274 // GFX9: v_fma_legacy_f16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x04]
275 // NOGCN: error: instruction not supported on this GPU
277 v_fma_legacy_f16 v5, -v1, v2, v3
278 // GFX9: v_fma_legacy_f16 v5, -v1, v2, v3 ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x24]
279 // NOGCN: error: instruction not supported on this GPU
281 v_fma_legacy_f16 v5, v1, |v2|, v3
282 // GFX9: v_fma_legacy_f16 v5, v1, |v2|, v3 ; encoding: [0x05,0x02,0xee,0xd1,0x01,0x05,0x0e,0x04]
283 // NOGCN: error: instruction not supported on this GPU
285 v_fma_legacy_f16 v5, v1, v2, v3 clamp
286 // GFX9: v_fma_legacy_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xee,0xd1,0x01,0x05,0x0e,0x04]
287 // NOGCN: error: instruction not supported on this GPU
289 v_div_fixup_f16_e64 v5, 0.5, v2, v3
290 // GFX9: v_div_fixup_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x00,0x07,0xd2,0xf0,0x04,0x0e,0x04]
291 // NOSICI: error: instruction not supported on this GPU
292 // VI: v_div_fixup_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x00,0xef,0xd1,0xf0,0x04,0x0e,0x04]
294 v_div_fixup_f16 v5, v1, 0.5, v3
295 // GFX9: v_div_fixup_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x00,0x07,0xd2,0x01,0xe1,0x0d,0x04]
296 // NOSICI: error: instruction not supported on this GPU
297 // VI: v_div_fixup_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x00,0xef,0xd1,0x01,0xe1,0x0d,0x04]
299 v_div_fixup_f16 v5, v1, v2, 0.5
300 // GFX9: v_div_fixup_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x00,0x07,0xd2,0x01,0x05,0xc2,0x03]
301 // NOSICI: error: instruction not supported on this GPU
302 // VI: v_div_fixup_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0xc2,0x03]
304 v_div_fixup_f16 v5, -v1, v2, v3
305 // GFX9: v_div_fixup_f16 v5, -v1, v2, v3 ; encoding: [0x05,0x00,0x07,0xd2,0x01,0x05,0x0e,0x24]
306 // NOSICI: error: instruction not supported on this GPU
307 // VI: v_div_fixup_f16 v5, -v1, v2, v3 ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0x0e,0x24]
309 v_div_fixup_f16 v5, |v1|, v2, v3
310 // GFX9: v_div_fixup_f16 v5, |v1|, v2, v3 ; encoding: [0x05,0x01,0x07,0xd2,0x01,0x05,0x0e,0x04]
311 // NOSICI: error: instruction not supported on this GPU
312 // VI: v_div_fixup_f16 v5, |v1|, v2, v3 ; encoding: [0x05,0x01,0xef,0xd1,0x01,0x05,0x0e,0x04]
314 v_div_fixup_f16 v5, v1, v2, v3 clamp
315 // GFX9: v_div_fixup_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x07,0xd2,0x01,0x05,0x0e,0x04]
316 // NOSICI: error: instruction not supported on this GPU
317 // VI: v_div_fixup_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xef,0xd1,0x01,0x05,0x0e,0x04]
319 v_div_fixup_f16 v5, v1, v2, v3 op_sel:[1,0,0,0]
320 // GFX9: v_div_fixup_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x07,0xd2,0x01,0x05,0x0e,0x04]
321 // NOSICI: error: instruction not supported on this GPU
322 // NOVI: error: operands are not valid for this GPU or mode
324 v_div_fixup_f16 v5, v1, v2, v3 op_sel:[0,0,1,0]
325 // GFX9: v_div_fixup_f16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0x07,0xd2,0x01,0x05,0x0e,0x04]
326 // NOSICI: error: instruction not supported on this GPU
327 // NOVI: error: operands are not valid for this GPU or mode
329 v_div_fixup_f16 v5, v1, v2, v3 op_sel:[0,0,0,1]
330 // GFX9: v_div_fixup_f16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x07,0xd2,0x01,0x05,0x0e,0x04]
331 // NOSICI: error: instruction not supported on this GPU
332 // NOVI: error: operands are not valid for this GPU or mode
334 v_div_fixup_legacy_f16_e64 v5, 0.5, v2, v3
335 // GFX9: v_div_fixup_legacy_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x00,0xef,0xd1,0xf0,0x04,0x0e,0x04]
336 // NOGCN: error: instruction not supported on this GPU
338 v_div_fixup_legacy_f16 v5, v1, 0.5, v3
339 // GFX9: v_div_fixup_legacy_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x00,0xef,0xd1,0x01,0xe1,0x0d,0x04]
340 // NOGCN: error: instruction not supported on this GPU
342 v_div_fixup_legacy_f16 v5, v1, v2, 0.5
343 // GFX9: v_div_fixup_legacy_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0xc2,0x03]
344 // NOGCN: error: instruction not supported on this GPU
346 v_div_fixup_legacy_f16 v5, -v1, v2, v3
347 // GFX9: v_div_fixup_legacy_f16 v5, -v1, v2, v3 ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0x0e,0x24]
348 // NOGCN: error: instruction not supported on this GPU
350 v_div_fixup_legacy_f16 v5, v1, |v2|, v3
351 // GFX9: v_div_fixup_legacy_f16 v5, v1, |v2|, v3 ; encoding: [0x05,0x02,0xef,0xd1,0x01,0x05,0x0e,0x04]
352 // NOGCN: error: instruction not supported on this GPU
354 v_div_fixup_legacy_f16 v5, v1, v2, v3 clamp
355 // GFX9: v_div_fixup_legacy_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xef,0xd1,0x01,0x05,0x0e,0x04]
356 // NOGCN: error: instruction not supported on this GPU
358 v_mad_f16_e64 v5, 0.5, v2, v3
359 // GFX9: v_mad_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x00,0x03,0xd2,0xf0,0x04,0x0e,0x04]
360 // NOSICI: error: instruction not supported on this GPU
361 // VI: v_mad_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x00,0xea,0xd1,0xf0,0x04,0x0e,0x04]
363 v_mad_f16 v5, v1, 0.5, v3
364 // GFX9: v_mad_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x00,0x03,0xd2,0x01,0xe1,0x0d,0x04]
365 // NOSICI: error: instruction not supported on this GPU
366 // VI: v_mad_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x00,0xea,0xd1,0x01,0xe1,0x0d,0x04]
368 v_mad_f16 v5, v1, v2, 0.5
369 // GFX9: v_mad_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x00,0x03,0xd2,0x01,0x05,0xc2,0x03]
370 // NOSICI: error: instruction not supported on this GPU
371 // VI: v_mad_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0xc2,0x03]
373 v_mad_f16 v5, v1, v2, -v3
374 // GFX9: v_mad_f16 v5, v1, v2, -v3 ; encoding: [0x05,0x00,0x03,0xd2,0x01,0x05,0x0e,0x84]
375 // NOSICI: error: instruction not supported on this GPU
376 // VI: v_mad_f16 v5, v1, v2, -v3 ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0x0e,0x84]
378 v_mad_f16 v5, v1, v2, |v3|
379 // GFX9: v_mad_f16 v5, v1, v2, |v3| ; encoding: [0x05,0x04,0x03,0xd2,0x01,0x05,0x0e,0x04]
380 // NOSICI: error: instruction not supported on this GPU
381 // VI: v_mad_f16 v5, v1, v2, |v3| ; encoding: [0x05,0x04,0xea,0xd1,0x01,0x05,0x0e,0x04]
383 v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,0,0]
384 // GFX9: v_mad_f16 v5, v1, v2, v3 ; encoding: [0x05,0x00,0x03,0xd2,0x01,0x05,0x0e,0x04]
385 // NOSICI: error: instruction not supported on this GPU
386 // NOVI: error: operands are not valid for this GPU or mode
388 v_mad_f16 v5, v1, v2, v3 op_sel:[1,0,0,0]
389 // GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x03,0xd2,0x01,0x05,0x0e,0x04]
390 // NOSICI: error: instruction not supported on this GPU
391 // NOVI: error: operands are not valid for this GPU or mode
393 v_mad_f16 v5, v1, v2, v3 op_sel:[0,1,0,0]
394 // GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[0,1,0,0] ; encoding: [0x05,0x10,0x03,0xd2,0x01,0x05,0x0e,0x04]
395 // NOSICI: error: instruction not supported on this GPU
396 // NOVI: error: operands are not valid for this GPU or mode
398 v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,1,0]
399 // GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0x03,0xd2,0x01,0x05,0x0e,0x04]
400 // NOSICI: error: instruction not supported on this GPU
401 // NOVI: error: operands are not valid for this GPU or mode
403 v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,0,1]
404 // GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x03,0xd2,0x01,0x05,0x0e,0x04]
405 // NOSICI: error: instruction not supported on this GPU
406 // NOVI: error: operands are not valid for this GPU or mode
408 v_mad_f16 v5, v1, v2, v3 op_sel:[1,1,1,1]
409 // GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x03,0xd2,0x01,0x05,0x0e,0x04]
410 // NOSICI: error: instruction not supported on this GPU
411 // NOVI: error: operands are not valid for this GPU or mode
413 v_mad_f16 v5, v1, v2, v3 clamp
414 // GFX9: v_mad_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x03,0xd2,0x01,0x05,0x0e,0x04]
415 // NOSICI: error: instruction not supported on this GPU
416 // VI: v_mad_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xea,0xd1,0x01,0x05,0x0e,0x04]
418 v_mad_i16_e64 v5, 0, v2, v3
419 // GFX9: v_mad_i16 v5, 0, v2, v3 ; encoding: [0x05,0x00,0x05,0xd2,0x80,0x04,0x0e,0x04]
420 // NOSICI: error: instruction not supported on this GPU
421 // VI: v_mad_i16 v5, 0, v2, v3 ; encoding: [0x05,0x00,0xec,0xd1,0x80,0x04,0x0e,0x04]
423 v_mad_i16 v5, v1, -1, v3
424 // GFX9: v_mad_i16 v5, v1, -1, v3 ; encoding: [0x05,0x00,0x05,0xd2,0x01,0x83,0x0d,0x04]
425 // NOSICI: error: instruction not supported on this GPU
426 // VI: v_mad_i16 v5, v1, -1, v3 ; encoding: [0x05,0x00,0xec,0xd1,0x01,0x83,0x0d,0x04]
428 v_mad_i16 v5, v1, v2, -4.0
429 // NOGFX9: error: literal operands are not supported
430 // NOSICI: error: instruction not supported on this GPU
431 // NOVI: error: literal operands are not supported
433 v_mad_i16 v5, v1, v2, v3 clamp
434 // GFX9: v_mad_i16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x05,0xd2,0x01,0x05,0x0e,0x04]
435 // NOSICI: error: instruction not supported on this GPU
436 // VI: v_mad_i16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xec,0xd1,0x01,0x05,0x0e,0x04]
438 v_mad_i16 v5, v1, v2, v3 op_sel:[0,0,0,1]
439 // GFX9: v_mad_i16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x05,0xd2,0x01,0x05,0x0e,0x04]
440 // NOSICI: error: instruction not supported on this GPU
441 // NOVI: error: operands are not valid for this GPU or mode
443 v_mad_i16 v5, v1, v2, v3 op_sel:[1,1,1,1]
444 // GFX9: v_mad_i16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x05,0xd2,0x01,0x05,0x0e,0x04]
445 // NOSICI: error: instruction not supported on this GPU
446 // NOVI: error: operands are not valid for this GPU or mode
448 v_mad_legacy_f16_e64 v5, 0.5, v2, v3
449 // GFX9: v_mad_legacy_f16 v5, 0.5, v2, v3 ; encoding: [0x05,0x00,0xea,0xd1,0xf0,0x04,0x0e,0x04]
450 // NOGCN: error: instruction not supported on this GPU
452 v_mad_legacy_f16 v5, v1, 0.5, v3
453 // GFX9: v_mad_legacy_f16 v5, v1, 0.5, v3 ; encoding: [0x05,0x00,0xea,0xd1,0x01,0xe1,0x0d,0x04]
454 // NOGCN: error: instruction not supported on this GPU
456 v_mad_legacy_f16 v5, v1, v2, 0.5
457 // GFX9: v_mad_legacy_f16 v5, v1, v2, 0.5 ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0xc2,0x03]
458 // NOGCN: error: instruction not supported on this GPU
460 v_mad_legacy_f16 v5, v1, -v2, v3
461 // GFX9: v_mad_legacy_f16 v5, v1, -v2, v3 ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0x0e,0x44]
462 // NOGCN: error: instruction not supported on this GPU
464 v_mad_legacy_f16 v5, v1, |v2|, v3
465 // GFX9: v_mad_legacy_f16 v5, v1, |v2|, v3 ; encoding: [0x05,0x02,0xea,0xd1,0x01,0x05,0x0e,0x04]
466 // NOGCN: error: instruction not supported on this GPU
468 v_mad_legacy_f16 v5, v1, v2, v3 clamp
469 // GFX9: v_mad_legacy_f16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xea,0xd1,0x01,0x05,0x0e,0x04]
470 // NOGCN: error: instruction not supported on this GPU
472 v_mad_legacy_i16_e64 v5, 0, v2, v3
473 // GFX9: v_mad_legacy_i16 v5, 0, v2, v3 ; encoding: [0x05,0x00,0xec,0xd1,0x80,0x04,0x0e,0x04]
474 // NOGCN: error: instruction not supported on this GPU
476 v_mad_legacy_i16 v5, v1, -1, v3
477 // GFX9: v_mad_legacy_i16 v5, v1, -1, v3 ; encoding: [0x05,0x00,0xec,0xd1,0x01,0x83,0x0d,0x04]
478 // NOGCN: error: instruction not supported on this GPU
480 v_mad_legacy_i16 v5, v1, v2, -4.0
481 // NOGFX9: error: literal operands are not supported
482 // NOGCN: error: instruction not supported on this GPU
484 v_mad_legacy_i16 v5, v1, v2, -4.0 clamp
485 // NOGFX9: error: literal operands are not supported
486 // NOGCN: error: instruction not supported on this GPU
488 v_mad_legacy_u16_e64 v5, 0, v2, v3
489 // GFX9: v_mad_legacy_u16 v5, 0, v2, v3 ; encoding: [0x05,0x00,0xeb,0xd1,0x80,0x04,0x0e,0x04]
490 // NOGCN: error: instruction not supported on this GPU
492 v_mad_legacy_u16 v5, v1, -1, v3
493 // GFX9: v_mad_legacy_u16 v5, v1, -1, v3 ; encoding: [0x05,0x00,0xeb,0xd1,0x01,0x83,0x0d,0x04]
494 // NOGCN: error: instruction not supported on this GPU
496 v_mad_legacy_u16 v5, v1, v2, -4.0
497 // NOGFX9: error: literal operands are not supported
498 // NOGCN: error: instruction not supported on this GPU
500 v_mad_legacy_u16 v5, v1, v2, -4.0 clamp
501 // NOGFX9: error: literal operands are not supported
502 // NOGCN: error: instruction not supported on this GPU
504 v_mad_u16_e64 v5, 0, v2, v3
505 // GFX9: v_mad_u16 v5, 0, v2, v3 ; encoding: [0x05,0x00,0x04,0xd2,0x80,0x04,0x0e,0x04]
506 // NOSICI: error: instruction not supported on this GPU
507 // VI: v_mad_u16 v5, 0, v2, v3 ; encoding: [0x05,0x00,0xeb,0xd1,0x80,0x04,0x0e,0x04]
509 v_mad_u16 v5, v1, -1, v3
510 // GFX9: v_mad_u16 v5, v1, -1, v3 ; encoding: [0x05,0x00,0x04,0xd2,0x01,0x83,0x0d,0x04]
511 // NOSICI: error: instruction not supported on this GPU
512 // VI: v_mad_u16 v5, v1, -1, v3 ; encoding: [0x05,0x00,0xeb,0xd1,0x01,0x83,0x0d,0x04]
514 v_mad_u16 v5, v1, v2, -4.0
515 // NOGFX9: error: literal operands are not supported
516 // NOSICI: error: instruction not supported on this GPU
517 // NOVI: error: literal operands are not supported
519 v_mad_u16 v5, v1, v2, v3 clamp
520 // GFX9: v_mad_u16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x04,0xd2,0x01,0x05,0x0e,0x04]
521 // NOSICI: error: instruction not supported on this GPU
522 // VI: v_mad_u16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xeb,0xd1,0x01,0x05,0x0e,0x04]
524 v_mad_u16 v5, v1, v2, v3 op_sel:[1,0,0,0]
525 // GFX9: v_mad_u16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x04,0xd2,0x01,0x05,0x0e,0x04]
526 // NOSICI: error: instruction not supported on this GPU
527 // NOVI: error: operands are not valid for this GPU or mode
529 v_mad_u16 v5, v1, v2, v3 op_sel:[0,0,0,1]
530 // GFX9: v_mad_u16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x04,0xd2,0x01,0x05,0x0e,0x04]
531 // NOSICI: error: instruction not supported on this GPU
532 // NOVI: error: operands are not valid for this GPU or mode
534 v_mad_u16 v5, v1, v2, v3 op_sel:[1,1,1,1]
535 // GFX9: v_mad_u16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x04,0xd2,0x01,0x05,0x0e,0x04]
536 // NOSICI: error: instruction not supported on this GPU
537 // NOVI: error: operands are not valid for this GPU or mode
539 v_interp_p2_f16 v5, v2, attr0.x, v3
540 // GFX9: v_interp_p2_f16 v5, v2, attr0.x, v3 ; encoding: [0x05,0x00,0x77,0xd2,0x00,0x04,0x0e,0x04]
541 // NOSICI: error: instruction not supported on this GPU
542 // VI: v_interp_p2_f16 v5, v2, attr0.x, v3 ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x04]
544 v_interp_p2_f16 v5, -v2, attr0.x, v3
545 // GFX9: v_interp_p2_f16 v5, -v2, attr0.x, v3 ; encoding: [0x05,0x00,0x77,0xd2,0x00,0x04,0x0e,0x44]
546 // NOSICI: error: instruction not supported on this GPU
547 // VI: v_interp_p2_f16 v5, -v2, attr0.x, v3 ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x44]
549 v_interp_p2_f16 v5, v2, attr0.x, |v3|
550 // GFX9: v_interp_p2_f16 v5, v2, attr0.x, |v3| ; encoding: [0x05,0x04,0x77,0xd2,0x00,0x04,0x0e,0x04]
551 // NOSICI: error: instruction not supported on this GPU
552 // VI: v_interp_p2_f16 v5, v2, attr0.x, |v3| ; encoding: [0x05,0x04,0x76,0xd2,0x00,0x04,0x0e,0x04]
554 v_interp_p2_f16 v5, v2, attr0.w, v3
555 // GFX9: v_interp_p2_f16 v5, v2, attr0.w, v3 ; encoding: [0x05,0x00,0x77,0xd2,0xc0,0x04,0x0e,0x04]
556 // NOSICI: error: instruction not supported on this GPU
557 // VI: v_interp_p2_f16 v5, v2, attr0.w, v3 ; encoding: [0x05,0x00,0x76,0xd2,0xc0,0x04,0x0e,0x04]
559 v_interp_p2_f16 v5, v2, attr0.x, v3 high
560 // GFX9: v_interp_p2_f16 v5, v2, attr0.x, v3 high ; encoding: [0x05,0x00,0x77,0xd2,0x00,0x05,0x0e,0x04]
561 // NOSICI: error: instruction not supported on this GPU
562 // VI: v_interp_p2_f16 v5, v2, attr0.x, v3 high ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x05,0x0e,0x04]
564 v_interp_p2_f16 v5, v2, attr0.x, v3 clamp
565 // GFX9: v_interp_p2_f16 v5, v2, attr0.x, v3 clamp ; encoding: [0x05,0x80,0x77,0xd2,0x00,0x04,0x0e,0x04]
566 // NOSICI: error: instruction not supported on this GPU
567 // VI: v_interp_p2_f16 v5, v2, attr0.x, v3 clamp ; encoding: [0x05,0x80,0x76,0xd2,0x00,0x04,0x0e,0x04]
569 v_interp_p2_legacy_f16 v5, v2, attr31.x, v3
570 // GFX9: v_interp_p2_legacy_f16 v5, v2, attr31.x, v3 ; encoding: [0x05,0x00,0x76,0xd2,0x1f,0x04,0x0e,0x04]
571 // NOGCN: error: instruction not supported on this GPU
573 v_interp_p2_legacy_f16 v5, -v2, attr0.x, v3
574 // GFX9: v_interp_p2_legacy_f16 v5, -v2, attr0.x, v3 ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x44]
575 // NOGCN: error: instruction not supported on this GPU
577 v_interp_p2_legacy_f16 v5, v2, attr0.x, |v3|
578 // GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.x, |v3| ; encoding: [0x05,0x04,0x76,0xd2,0x00,0x04,0x0e,0x04]
579 // NOGCN: error: instruction not supported on this GPU
581 v_interp_p2_legacy_f16 v5, v2, attr0.w, v3
582 // GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.w, v3 ; encoding: [0x05,0x00,0x76,0xd2,0xc0,0x04,0x0e,0x04]
583 // NOGCN: error: instruction not supported on this GPU
585 v_interp_p2_legacy_f16 v5, v2, attr0.x, v3 high
586 // GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.x, v3 high ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x05,0x0e,0x04]
587 // NOGCN: error: instruction not supported on this GPU
589 v_interp_p2_legacy_f16 v5, v2, attr0.x, v3 clamp
590 // GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.x, v3 clamp ; encoding: [0x05,0x80,0x76,0xd2,0x00,0x04,0x0e,0x04]
591 // NOGCN: error: instruction not supported on this GPU
593 v_cvt_norm_i16_f16_e64 v5, -v1
594 // GFX9: v_cvt_norm_i16_f16_e64 v5, -v1 ; encoding: [0x05,0x00,0x8d,0xd1,0x01,0x01,0x00,0x20]
595 // NOGCN: error: instruction not supported on this GPU
597 v_cvt_norm_i16_f16_e64 v5, |v1|
598 // GFX9: v_cvt_norm_i16_f16_e64 v5, |v1| ; encoding: [0x05,0x01,0x8d,0xd1,0x01,0x01,0x00,0x00]
599 // NOGCN: error: instruction not supported on this GPU
601 v_cvt_norm_u16_f16_e64 v5, -v1
602 // GFX9: v_cvt_norm_u16_f16_e64 v5, -v1 ; encoding: [0x05,0x00,0x8e,0xd1,0x01,0x01,0x00,0x20]
603 // NOGCN: error: instruction not supported on this GPU
605 v_cvt_norm_u16_f16_e64 v5, |v1|
606 // GFX9: v_cvt_norm_u16_f16_e64 v5, |v1| ; encoding: [0x05,0x01,0x8e,0xd1,0x01,0x01,0x00,0x00]
607 // NOGCN: error: instruction not supported on this GPU
609 v_sat_pk_u8_i16_e64 v5, -1
610 // GFX9: v_sat_pk_u8_i16_e64 v5, -1 ; encoding: [0x05,0x00,0x8f,0xd1,0xc1,0x00,0x00,0x00]
611 // NOGCN: error: instruction not supported on this GPU
613 v_sat_pk_u8_i16_e64 v5, v255
614 // GFX9: v_sat_pk_u8_i16_e64 v5, v255 ; encoding: [0x05,0x00,0x8f,0xd1,0xff,0x01,0x00,0x00]
615 // NOGCN: error: instruction not supported on this GPU
617 v_screen_partition_4se_b32_e64 v5, v1
618 // NOGCN: error: instruction not supported on this GPU
619 // GFX9: v_screen_partition_4se_b32_e64 v5, v1 ; encoding: [0x05,0x00,0x77,0xd1,0x01,0x01,0x00,0x00]
621 v_screen_partition_4se_b32_e64 v5, -1
622 // NOGCN: error: instruction not supported on this GPU
623 // GFX9: v_screen_partition_4se_b32_e64 v5, -1 ; encoding: [0x05,0x00,0x77,0xd1,0xc1,0x00,0x00,0x00]
625 v_add_u32 v84, v13, s31 clamp
626 // GFX9: v_add_u32_e64 v84, v13, s31 clamp ; encoding: [0x54,0x80,0x34,0xd1,0x0d,0x3f,0x00,0x00]
627 // NOSICI: error: instruction not supported on this GPU
628 // NOVI: error: invalid operand for instruction
630 v_sub_u32 v84, v13, s31 clamp
631 // GFX9: v_sub_u32_e64 v84, v13, s31 clamp ; encoding: [0x54,0x80,0x35,0xd1,0x0d,0x3f,0x00,0x00]
632 // NOSICI: error: instruction not supported on this GPU
633 // NOVI: error: invalid operand for instruction
635 v_subrev_u32 v84, v13, s31 clamp
636 // GFX9: v_subrev_u32_e64 v84, v13, s31 clamp ; encoding: [0x54,0x80,0x36,0xd1,0x0d,0x3f,0x00,0x00]
637 // NOSICI: error: instruction not supported on this GPU
638 // NOVI: error: invalid operand for instruction
640 v_addc_co_u32 v84, s[4:5], v13, v31, vcc clamp
641 // GFX9: v_addc_co_u32_e64 v84, s[4:5], v13, v31, vcc clamp ; encoding: [0x54,0x84,0x1c,0xd1,0x0d,0x3f,0xaa,0x01]
642 // NOGCN: error: instruction not supported on this GPU
644 v_subb_co_u32 v84, s[2:3], v13, v31, vcc clamp
645 // GFX9: v_subb_co_u32_e64 v84, s[2:3], v13, v31, vcc clamp ; encoding: [0x54,0x82,0x1d,0xd1,0x0d,0x3f,0xaa,0x01]
646 // NOGCN: error: instruction not supported on this GPU
648 v_subbrev_co_u32 v84, vcc, v13, v31, s[6:7] clamp
649 // GFX9: v_subbrev_co_u32_e64 v84, vcc, v13, v31, s[6:7] clamp ; encoding: [0x54,0xea,0x1e,0xd1,0x0d,0x3f,0x1a,0x00]
650 // NOGCN: error: instruction not supported on this GPU
652 v_add_co_u32 v84, s[4:5], v13, v31 clamp
653 // GFX9: v_add_co_u32_e64 v84, s[4:5], v13, v31 clamp ; encoding: [0x54,0x84,0x19,0xd1,0x0d,0x3f,0x02,0x00]
654 // NOSICI: error: integer clamping is not supported on this GPU
655 // NOVI: error: instruction not supported on this GPU
657 v_sub_co_u32 v84, s[2:3], v13, v31 clamp
658 // GFX9: v_sub_co_u32_e64 v84, s[2:3], v13, v31 clamp ; encoding: [0x54,0x82,0x1a,0xd1,0x0d,0x3f,0x02,0x00]
659 // NOSICI: error: integer clamping is not supported on this GPU
660 // NOVI: error: instruction not supported on this GPU
662 v_subrev_co_u32 v84, vcc, v13, v31 clamp
663 // GFX9: v_subrev_co_u32_e64 v84, vcc, v13, v31 clamp ; encoding: [0x54,0xea,0x1b,0xd1,0x0d,0x3f,0x02,0x00]
664 // NOSICI: error: integer clamping is not supported on this GPU
665 // NOVI: error: instruction not supported on this GPU
667 v_addc_co_u32 v84, vcc, v13, v31, vcc
668 // GFX9: v_addc_co_u32_e32 v84, vcc, v13, v31, vcc ; encoding: [0x0d,0x3f,0xa8,0x38]
669 // NOGCN: error: instruction not supported on this GPU
671 v_subb_co_u32 v84, vcc, v13, v31, vcc
672 // GFX9: v_subb_co_u32_e32 v84, vcc, v13, v31, vcc ; encoding: [0x0d,0x3f,0xa8,0x3a]
673 // NOGCN: error: instruction not supported on this GPU
675 v_subbrev_co_u32 v84, vcc, v13, v31, vcc
676 // GFX9: v_subbrev_co_u32_e32 v84, vcc, v13, v31, vcc ; encoding: [0x0d,0x3f,0xa8,0x3c]
677 // NOGCN: error: instruction not supported on this GPU
679 v_add_co_u32 v84, vcc, v13, v31
680 // GFX9: v_add_co_u32_e32 v84, vcc, v13, v31 ; encoding: [0x0d,0x3f,0xa8,0x32]
681 // NOVI: error: instruction not supported on this GPU
682 // SICI: v_add_i32_e64 v84, vcc, v13, v31 ; encoding: [0x54,0x6a,0x4a,0xd2,0x0d,0x3f,0x02,0x00]
684 v_sub_co_u32 v84, vcc, v13, v31
685 // GFX9: v_sub_co_u32_e32 v84, vcc, v13, v31 ; encoding: [0x0d,0x3f,0xa8,0x34]
686 // NOVI: error: instruction not supported on this GPU
687 // SICI: v_sub_i32_e64 v84, vcc, v13, v31 ; encoding: [0x54,0x6a,0x4c,0xd2,0x0d,0x3f,0x02,0x00]
689 v_subrev_co_u32 v84, vcc, v13, v31
690 // GFX9: v_subrev_co_u32_e32 v84, vcc, v13, v31 ; encoding: [0x0d,0x3f,0xa8,0x36]
691 // NOVI: error: instruction not supported on this GPU
692 // SICI: v_subrev_i32_e64 v84, vcc, v13, v31 ; encoding: [0x54,0x6a,0x4e,0xd2,0x0d,0x3f,0x02,0x00]
694 v_add_i32 v1, v2, v3
695 // GFX9: v_add_i32 v1, v2, v3 ; encoding: [0x01,0x00,0x9c,0xd2,0x02,0x07,0x02,0x00]
696 // NOSICI: error: operands are not valid for this GPU or mode
697 // NOVI: error: instruction not supported on this GPU
699 v_add_i32 v1, v2, v3 clamp
700 // GFX9: v_add_i32 v1, v2, v3 clamp ; encoding: [0x01,0x80,0x9c,0xd2,0x02,0x07,0x02,0x00]
701 // NOSICI: error: invalid operand for instruction
702 // NOVI: error: instruction not supported on this GPU
704 v_sub_i32 v1, v2, v3
705 // GFX9: v_sub_i32 v1, v2, v3 ; encoding: [0x01,0x00,0x9d,0xd2,0x02,0x07,0x02,0x00]
706 // NOSICI: error: operands are not valid for this GPU or mode
707 // NOVI: error: instruction not supported on this GPU
709 v_sub_i32 v1, v2, v3 clamp
710 // GFX9: v_sub_i32 v1, v2, v3 clamp ; encoding: [0x01,0x80,0x9d,0xd2,0x02,0x07,0x02,0x00]
711 // NOSICI: error: invalid operand for instruction
712 // NOVI: error: instruction not supported on this GPU
714 //===----------------------------------------------------------------------===//
715 // Validate register size checks (bug 37943)
716 //===----------------------------------------------------------------------===//
718 // NOGCN: error: invalid operand for instruction
719 // NOGFX9: error: invalid operand for instruction
720 v_add_f64 v[0:1], s0, v[0:1]
722 // NOGCN: error: invalid operand for instruction
723 // NOGFX9: error: invalid operand for instruction
724 v_add_f64 v[0:1], s[0:3], v[0:1]
726 // NOGCN: error: invalid operand for instruction
727 // NOGFX9: error: invalid operand for instruction
728 v_add_f64 v[0:1], v0, v[0:1]
730 // NOGCN: error: invalid operand for instruction
731 // NOGFX9: error: invalid operand for instruction
732 v_add_f64 v[0:1], v[0:2], v[0:1]
734 // NOGCN: error: invalid operand for instruction
735 // NOGFX9: error: invalid operand for instruction
736 v_add_f64 v[0:1], v[0:3], v[0:1]
738 // NOGCN: error: invalid operand for instruction
739 // NOGFX9: error: invalid operand for instruction
740 v_add_f64 v[0:1], v[0:1], v0
742 // NOGCN: error: invalid operand for instruction
743 // NOGFX9: error: invalid operand for instruction
744 v_add_f64 v[0:1], v[0:1], s0
746 // NOGCN: error: invalid operand for instruction
747 // NOGFX9: error: invalid operand for instruction
748 v_add_f32 v0, s[0:1], v0
750 // NOGCN: error: invalid operand for instruction
751 // NOGFX9: error: invalid operand for instruction
752 v_add_f32 v0, v[0:1], v0
754 // NOGCN: error: invalid operand for instruction
755 // NOGFX9: error: invalid operand for instruction
756 v_add_f32 v0, v0, s[0:1]
758 // NOGCN: error: invalid operand for instruction
759 // NOGFX9: error: invalid operand for instruction
760 v_add_f32 v0, v0, v[0:1]
762 // NOGFX9: error: invalid operand for instruction
763 // NOSICI: error: instruction not supported on this GPU
764 // NOVI: error: invalid operand for instruction
765 v_add_f16 v0, s[0:1], v0
767 // NOGFX9: error: invalid operand for instruction
768 // NOSICI: error: instruction not supported on this GPU
769 // NOVI: error: invalid operand for instruction
770 v_add_f16 v0, v[0:1], v0
772 // NOGFX9: error: invalid operand for instruction
773 // NOSICI: error: instruction not supported on this GPU
774 // NOVI: error: invalid operand for instruction
775 v_add_f16 v0, v0, s[0:1]
777 // NOGFX9: error: invalid operand for instruction
778 // NOSICI: error: instruction not supported on this GPU
779 // NOVI: error: invalid operand for instruction
780 v_add_f16 v0, v0, v[0:1]
782 // NOGFX9: error: invalid operand for instruction
783 // NOSICI: error: instruction not supported on this GPU
784 // NOVI: error: invalid operand for instruction
785 v_add_u16 v0, s[0:1], v0
787 // NOGFX9: error: invalid operand for instruction
788 // NOSICI: error: instruction not supported on this GPU
789 // NOVI: error: invalid operand for instruction
790 v_add_u16 v0, v[0:1], v0
792 // NOGFX9: error: invalid operand for instruction
793 // NOSICI: error: instruction not supported on this GPU
794 // NOVI: error: invalid operand for instruction
795 v_add_u16 v0, v0, s[0:1]
797 // NOGFX9: error: invalid operand for instruction
798 // NOSICI: error: instruction not supported on this GPU
799 // NOVI: error: invalid operand for instruction
800 v_add_u16 v0, v0, v[0:1]