1// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefixes=GCN,SI,SICI,SICIVI %s
2// RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii -show-encoding %s | FileCheck -check-prefixes=GCN,CI,SICI,SICIVI %s
3// RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefixes=GCN,VI,SICIVI %s
4// RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefixes=GCN,GFX9 %s
5// RUN: not llvm-mc -arch=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck -check-prefixes=NOSI,NOSICI,NOGCN --implicit-check-not=error: %s
6// RUN: not llvm-mc -arch=amdgcn -mcpu=hawaii %s 2>&1 | FileCheck -check-prefixes=NOCI,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
9
10v_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
13
14v_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
17
18v_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
21
22v_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
25
26v_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
29
30v_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
33
34v_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
37
38v_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
41
42v_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
45
46v_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
49
50v_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
53
54v_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
57
58v_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
61
62v_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
65
66v_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
69
70v_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
73
74v_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
77
78v_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
81
82v_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
85
86v_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
89
90v_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
93
94v_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
97
98v_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
101
102v_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
105
106v_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
109
110v_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
113
114v_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
117
118v_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
121
122v_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
125
126v_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
129
130v_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
133
134v_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
137
138v_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
141
142v_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
145
146v_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
149
150v_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
153
154v_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
157
158v_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
161
162v_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
165
166v_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
169
170v_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
173
174v_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
177
178v_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
181
182v_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
185
186v_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
189
190v_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
193
194v_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
197
198v_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
201
202v_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
205
206v_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
209
210v_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
213
214v_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
217
218v_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
221
222v_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
225
226v_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
229
230v_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
233
234v_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
237
238v_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]
242
243v_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]
247
248v_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]
252
253v_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]
257
258v_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
262
263v_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
267
268v_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
272
273v_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
276
277v_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
280
281v_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
284
285v_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
288
289v_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]
293
294v_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]
298
299v_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]
303
304v_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]
308
309v_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]
313
314v_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]
318
319v_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
323
324v_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
328
329v_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
333
334v_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
337
338v_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
341
342v_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
345
346v_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
349
350v_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
353
354v_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
357
358v_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]
362
363v_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]
367
368v_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]
372
373v_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]
377
378v_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]
382
383v_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
387
388v_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
392
393v_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
397
398v_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
402
403v_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
407
408v_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
412
413v_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]
417
418v_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]
422
423v_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]
427
428v_mad_i16 v5, v1, v2, -4.0
429// NOGFX9: error: invalid literal operand
430// NOSICI: error: instruction not supported on this GPU
431// NOVI: error: invalid literal operand
432
433v_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]
437
438v_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
442
443v_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
447
448v_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
451
452v_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
455
456v_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
459
460v_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
463
464v_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
467
468v_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
471
472v_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
475
476v_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
479
480v_mad_legacy_i16 v5, v1, v2, -4.0
481// NOGFX9: error: invalid literal operand
482// NOGCN: error: instruction not supported on this GPU
483
484v_mad_legacy_i16 v5, v1, v2, -4.0 clamp
485// NOGFX9: error: invalid literal operand
486// NOGCN: error: instruction not supported on this GPU
487
488v_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
491
492v_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
495
496v_mad_legacy_u16 v5, v1, v2, -4.0
497// NOGFX9: error: invalid literal operand
498// NOGCN: error: instruction not supported on this GPU
499
500v_mad_legacy_u16 v5, v1, v2, -4.0 clamp
501// NOGFX9: error: invalid literal operand
502// NOGCN: error: instruction not supported on this GPU
503
504v_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]
508
509v_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]
513
514v_mad_u16 v5, v1, v2, -4.0
515// NOGFX9: error: invalid literal operand
516// NOSICI: error: instruction not supported on this GPU
517// NOVI: error: invalid literal operand
518
519v_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]
523
524v_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
528
529v_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
533
534v_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
538
539v_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]
543
544v_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]
548
549v_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]
553
554v_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]
558
559v_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]
563
564v_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]
568
569v_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
572
573v_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
576
577v_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
580
581v_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
584
585v_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
588
589v_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
592
593v_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
596
597v_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
600
601v_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
604
605v_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
608
609v_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
612
613v_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
616
617v_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]
620
621v_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]
624
625v_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
629
630v_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
634
635v_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
639
640v_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
643
644v_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
647
648v_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
651
652v_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
656
657v_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
661
662v_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
666
667v_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
670
671v_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
674
675v_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
678
679v_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]
683
684v_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]
688
689v_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]
693
694v_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
698
699v_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
703
704v_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
708
709v_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
713
714//===----------------------------------------------------------------------===//
715// Validate register size checks (bug 37943)
716//===----------------------------------------------------------------------===//
717
718// NOGCN: error: invalid operand for instruction
719// NOGFX9: error: invalid operand for instruction
720v_add_f64 v[0:1], s0, v[0:1]
721
722// NOGCN: error: invalid operand for instruction
723// NOGFX9: error: invalid operand for instruction
724v_add_f64 v[0:1], s[0:3], v[0:1]
725
726// NOGCN: error: invalid operand for instruction
727// NOGFX9: error: invalid operand for instruction
728v_add_f64 v[0:1], v0, v[0:1]
729
730// NOGCN: error: invalid operand for instruction
731// NOGFX9: error: invalid operand for instruction
732v_add_f64 v[0:1], v[0:2], v[0:1]
733
734// NOGCN: error: invalid operand for instruction
735// NOGFX9: error: invalid operand for instruction
736v_add_f64 v[0:1], v[0:3], v[0:1]
737
738// NOGCN: error: invalid operand for instruction
739// NOGFX9: error: invalid operand for instruction
740v_add_f64 v[0:1], v[0:1], v0
741
742// NOGCN: error: invalid operand for instruction
743// NOGFX9: error: invalid operand for instruction
744v_add_f64 v[0:1], v[0:1], s0
745
746// NOGCN: error: invalid operand for instruction
747// NOGFX9: error: invalid operand for instruction
748v_add_f32 v0, s[0:1], v0
749
750// NOGCN: error: invalid operand for instruction
751// NOGFX9: error: invalid operand for instruction
752v_add_f32 v0, v[0:1], v0
753
754// NOGCN: error: invalid operand for instruction
755// NOGFX9: error: invalid operand for instruction
756v_add_f32 v0, v0, s[0:1]
757
758// NOGCN: error: invalid operand for instruction
759// NOGFX9: error: invalid operand for instruction
760v_add_f32 v0, v0, v[0:1]
761
762// NOGFX9: error: invalid operand for instruction
763// NOSICI: error: instruction not supported on this GPU
764// NOVI: error: invalid operand for instruction
765v_add_f16 v0, s[0:1], v0
766
767// NOGFX9: error: invalid operand for instruction
768// NOSICI: error: instruction not supported on this GPU
769// NOVI: error: invalid operand for instruction
770v_add_f16 v0, v[0:1], v0
771
772// NOGFX9: error: invalid operand for instruction
773// NOSICI: error: instruction not supported on this GPU
774// NOVI: error: invalid operand for instruction
775v_add_f16 v0, v0, s[0:1]
776
777// NOGFX9: error: invalid operand for instruction
778// NOSICI: error: instruction not supported on this GPU
779// NOVI: error: invalid operand for instruction
780v_add_f16 v0, v0, v[0:1]
781
782// NOGFX9: error: invalid operand for instruction
783// NOSICI: error: instruction not supported on this GPU
784// NOVI: error: invalid operand for instruction
785v_add_u16 v0, s[0:1], v0
786
787// NOGFX9: error: invalid operand for instruction
788// NOSICI: error: instruction not supported on this GPU
789// NOVI: error: invalid operand for instruction
790v_add_u16 v0, v[0:1], v0
791
792// NOGFX9: error: invalid operand for instruction
793// NOSICI: error: instruction not supported on this GPU
794// NOVI: error: invalid operand for instruction
795v_add_u16 v0, v0, s[0:1]
796
797// NOGFX9: error: invalid operand for instruction
798// NOSICI: error: instruction not supported on this GPU
799// NOVI: error: invalid operand for instruction
800v_add_u16 v0, v0, v[0:1]
801
802