1 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-mattr
=-WavefrontSize32
,+WavefrontSize64
-show-encoding
%s
2>&1 | FileCheck
-check-prefix
=GFX10
%s
2 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
-show-encoding
%s
2>&1 | FileCheck
-check-prefix
=GFX9
%s
3 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx1010
-mattr
=-WavefrontSize32
,+WavefrontSize64
-show-encoding
%s
2>&1 | FileCheck
-check-prefix
=GFX10-ERR
%s
4 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
-show-encoding
%s
2>&1 | FileCheck
-check-prefix
=GFX9-ERR
%s
6 v_bfe_u32 v0
, 0x3039, v1
, s1
7 // GFX10
: v_bfe_u32 v0
, 0x3039, v1
, s1 ; encoding
: [0x00,0x00,0x48,0xd5,0xff,0x02,0x06,0x00,0x39,0x30,0x00,0x00]
8 // GFX9-ERR
: error
: invalid literal operand
10 v_bfe_u32 v0
, v1
, 0x3039, s1
11 // GFX10
: v_bfe_u32 v0
, v1
, 0x3039, s1 ; encoding
: [0x00,0x00,0x48,0xd5,0x01,0xff,0x05,0x00,0x39,0x30,0x00,0x00]
12 // GFX9-ERR
: error
: invalid literal operand
14 v_bfe_u32 v0
, v1
, s1
, 0x3039
15 // GFX10
: v_bfe_u32 v0
, v1
, s1
, 0x3039 ; encoding
: [0x00,0x00,0x48,0xd5,0x01,0x03,0xfc,0x03,0x39,0x30,0x00,0x00]
16 // GFX9-ERR
: error
: invalid literal operand
18 v_bfe_u32 v0
, 0x3039, 0x3039, s1
19 // GFX10
: v_bfe_u32 v0
, 0x3039, 0x3039, s1 ; encoding
: [0x00,0x00,0x48,0xd5,0xff,0xfe,0x05,0x00,0x39,0x30,0x00,0x00]
20 // GFX9-ERR
: error
: invalid literal operand
22 v_bfe_u32 v0
, 0x3039, s1
, 0x3039
23 // GFX10
: v_bfe_u32 v0
, 0x3039, s1
, 0x3039 ; encoding
: [0x00,0x00,0x48,0xd5,0xff,0x02,0xfc,0x03,0x39,0x30,0x00,0x00]
24 // GFX9-ERR
: error
: invalid literal operand
26 v_bfe_u32 v0
, v1
, 0x3039, 0x3039
27 // GFX10
: v_bfe_u32 v0
, v1
, 0x3039, 0x3039 ; encoding
: [0x00,0x00,0x48,0xd5,0x01,0xff,0xfd,0x03,0x39,0x30,0x00,0x00]
28 // GFX9-ERR
: error
: invalid literal operand
30 v_bfe_u32 v0
, 0x3039, 0x3039, 0x3039
31 // GFX10
: v_bfe_u32 v0
, 0x3039, 0x3039, 0x3039 ; encoding
: [0x00,0x00,0x48,0xd5,0xff,0xfe,0xfd,0x03,0x39,0x30,0x00,0x00]
32 // GFX9-ERR
: error
: invalid literal operand
34 v_bfe_u32 v0
, 0x3039, s1
, 0x3038
35 // GFX10-ERR
: error
: invalid literal operand
36 // GFX9-ERR
: error
: invalid literal operand
38 v_bfe_u32 v0
, 0x3039, v1
, v2
39 // GFX10
: v_bfe_u32 v0
, 0x3039, v1
, v2 ; encoding
: [0x00,0x00,0x48,0xd5,0xff,0x02,0x0a,0x04,0x39,0x30,0x00,0x00]
40 // GFX9-ERR
: error
: invalid literal operand
42 v_bfe_u32 v0
, 0x3039, 0x12345, v2
43 // GFX10-ERR
: error
: invalid literal operand
44 // GFX9-ERR
: error
: invalid literal operand
46 v_bfe_u32 v0
, s1
, 0x3039, s1
47 // GFX10-ERR
: v_bfe_u32 v0
, s1
, 0x3039, s1 ; encoding
: [0x00,0x00,0x48,0xd5,0x01,0xfe,0x05,0x00,0x39,0x30,0x00,0x00]
48 // GFX9-ERR
: error
: invalid literal operand
50 v_bfe_u32 v0
, s1
, 0x3039, s2
51 // GFX10
: error
: invalid operand
(violates constant bus restrictions
)
52 // GFX9-ERR
: error
: invalid literal operand
54 v_bfm_b32_e64 v0
, 0x3039, s1
55 // GFX10
: v_bfm_b32_e64 v0
, 0x3039, s1 ; encoding
: [0x00,0x00,0x63,0xd7,0xff,0x02,0x00,0x00,0x39,0x30,0x00,0x00]
56 // GFX9-ERR
: error
: invalid literal operand
58 v_bfm_b32_e64 v0
, 0x3039, v1
59 // GFX10
: v_bfm_b32_e64 v0
, 0x3039, v1 ; encoding
: [0x00,0x00,0x63,0xd7,0xff,0x02,0x02,0x00,0x39,0x30,0x00,0x00]
60 // GFX9-ERR
: error
: invalid literal operand
62 v_bfm_b32_e64 v0
, 0x3039, 0x3039
63 // GFX10
: v_bfm_b32_e64 v0
, 0x3039, 0x3039 ; encoding
: [0x00,0x00,0x63,0xd7,0xff,0xfe,0x01,0x00,0x39,0x30,0x00,0x00]
64 // GFX9-ERR
: error
: invalid literal operand
66 v_bfm_b32_e64 v0
, 0x3039, 0x3038
67 // GFX10-ERR
: error
: invalid literal operand
68 // GFX9-ERR
: error
: invalid literal operand
70 v_pk_add_f16 v1
, 25.0, v2
71 // GFX10
: v_pk_add_f16 v1
, 0x4e40, v2 ; encoding
: [0x01,0x00,0x0f,0xcc,0xff,0x04,0x02,0x18,0x40,0x4e,0x00,0x00]
72 // GFX9-ERR
: error
: invalid literal operand
74 v_pk_add_f16 v1
, 123456, v2
75 // GFX10
: v_pk_add_f16 v1
, 0x1e240, v2 ; encoding
: [0x01,0x00,0x0f,0xcc,0xff,0x04,0x02,0x18,0x40,0xe2,0x01,0x00]
76 // GFX9-ERR
: error
: invalid literal operand
78 v_pk_add_f16 v1
, -200, v2
79 // GFX10
: v_pk_add_f16 v1
, 0xffffff38, v2 ; encoding
: [0x01,0x00,0x0f,0xcc,0xff,0x04,0x02,0x18,0x38,0xff,0xff,0xff]
80 // GFX9-ERR
: error
: invalid literal operand
82 v_pk_add_f16 v1
, 25.0, 25.0
83 // GFX10
: v_pk_add_f16 v1
, 0x4e40, 0x4e40 ; encoding
: [0x01,0x00,0x0f,0xcc,0xff,0xfe,0x01,0x18,0x40,0x4e,0x00,0x00]
84 // GFX9-ERR
: error
: invalid literal operand
86 v_pk_add_f16 v1
, 25.0, 25.1
87 // GFX10-ERR
: error
: invalid literal operand
88 // GFX9-ERR
: error
: invalid literal operand
90 v_pk_add_u16 v1
, -200, v2
91 // GFX10
: v_pk_add_u16 v1
, 0xffffff38, v2 ; encoding
: [0x01,0x00,0x0a,0xcc,0xff,0x04,0x02,0x18,0x38,0xff,0xff,0xff]
92 // GFX9-ERR
: error
: invalid literal operand
94 v_pk_add_u16 v1
, 64, v2
95 // GFX10
: v_pk_add_u16 v1
, 64, v2 ; encoding
: [0x01,0x00,0x0a,0xcc,0xc0,0x04,0x02,0x18]
96 // GFX9
: v_pk_add_u16 v1
, 64, v2 ; encoding
: [0x01,0x00,0x8a,0xd3,0xc0,0x04,0x02,0x18]
98 v_pk_add_u16 v1
, 65, v2
99 // GFX10
: v_pk_add_u16 v1
, 0x41, v2 ; encoding
: [0x01,0x00,0x0a,0xcc,0xff,0x04,0x02,0x18,0x41,0x00,0x00,0x00]
100 // GFX9-ERR
: error
: invalid literal operand
102 v_pk_add_u16 v1
, -1, v2
103 // GFX10
: v_pk_add_u16 v1
, -1, v2 ; encoding
: [0x01,0x00,0x0a,0xcc,0xc1,0x04,0x02,0x18]
104 // GFX9
: v_pk_add_u16 v1
, -1, v2 ; encoding
: [0x01,0x00,0x8a,0xd3,0xc1,0x04,0x02,0x18]
106 v_pk_add_u16 v1
, -5, v2
107 // GFX10
: v_pk_add_u16 v1
, -5, v2 ; encoding
: [0x01,0x00,0x0a,0xcc,0xc5,0x04,0x02,0x18]
108 // GFX9
: v_pk_add_u16 v1
, -5, v2 ; encoding
: [0x01,0x00,0x8a,0xd3,0xc5,0x04,0x02,0x18]
110 v_pk_add_u16 v1
, -100, v2
111 // GFX10
: v_pk_add_u16 v1
, 0xffffff9c, v2 ; encoding
: [0x01,0x00,0x0a,0xcc,0xff,0x04,0x02,0x18,0x9c,0xff,0xff,0xff]
112 // GFX9-ERR
: error
: invalid literal operand
114 v_pk_add_u16 v1
, -100, -100
115 // GFX10
: v_pk_add_u16 v1
, 0xffffff9c, 0xffffff9c ; encoding
: [0x01,0x00,0x0a,0xcc,0xff,0xfe,0x01,0x18,0x9c,0xff,0xff,0xff]
116 // GFX9-ERR
: error
: invalid literal operand
118 v_add_f32_e64 v1
, neg(abs(0x123)), v3
119 // GFX10
: v_add_f32_e64 v1
, -|
0x123|
, v3 ; encoding
: [0x01,0x01,0x03,0xd5,0xff,0x06,0x02,0x20,0x23,0x01,0x00,0x00]
120 // GFX9-ERR
: error
: invalid literal operand
122 v_add_f32_e64 v1
, v3
, neg(0x123)
123 // GFX10
: v_add_f32_e64 v1
, v3
, neg(0x123) ; encoding
: [0x01,0x00,0x03,0xd5,0x03,0xff,0x01,0x40,0x23,0x01,0x00,0x00]
124 // GFX9-ERR
: error
: invalid literal operand
126 v_add_f32_e64 v1
, neg(abs(0x12345678)), neg(0x12345678)
127 // GFX10
: v_add_f32_e64 v1
, -|
0x12345678|
, neg(0x12345678) ; encoding
: [0x01,0x01,0x03,0xd5,0xff,0xfe,0x01,0x60,0x78,0x56,0x34,0x12]
128 // GFX9-ERR
: error
: invalid literal operand
130 v_add_f16_e64 v0
, v0
, 0xfe0b
131 // GFX10
: v_add_f16_e64 v0
, v0
, 0xfe0b ; encoding
: [0x00,0x00,0x32,0xd5,0x00,0xff,0x01,0x00,0x0b,0xfe,0x00,0x00]
132 // GFX9-ERR
: error
: invalid literal operand
134 v_add_f16_e64 v0
, v0
, neg(0xfe0b)
135 // GFX10
: v_add_f16_e64 v0
, v0
, neg(0xfe0b) ; encoding
: [0x00,0x00,0x32,0xd5,0x00,0xff,0x01,0x40,0x0b,0xfe,0x00,0x00]
136 // GFX9-ERR
: error
: invalid literal operand
138 v_add_f16_e64 v0
, 0x3456, v0
139 // GFX10
: v_add_f16_e64 v0
, 0x3456, v0 ; encoding
: [0x00,0x00,0x32,0xd5,0xff,0x00,0x02,0x00,0x56,0x34,0x00,0x00]
140 // GFX9-ERR
: error
: invalid literal operand
142 v_add_f16_e64 v0
, 0xfe0b, neg(0xfe0b)
143 // GFX10
: v_add_f16_e64 v0
, 0xfe0b, neg(0xfe0b) ; encoding
: [0x00,0x00,0x32,0xd5,0xff,0xfe,0x01,0x40,0x0b,0xfe,0x00,0x00]
144 // GFX9-ERR
: error
: invalid literal operand
146 v_add_f64 v
[0:1], 1.23456, v
[0:1]
147 // GFX10
: v_add_f64 v
[0:1], 0x3ff3c0c1, v
[0:1] ; encoding
: [0x00,0x00,0x64,0xd5,0xff,0x00,0x02,0x00,0xc1,0xc0,0xf3,0x3f]
148 // GFX9-ERR
: error
: invalid literal operand
150 v_add_f64 v
[0:1], v
[0:1], -abs(1.23456)
151 // GFX10
: v_add_f64 v
[0:1], v
[0:1], -|
0x3ff3c0c1| ; encoding
: [0x00,0x02,0x64,0xd5,0x00,0xff,0x01,0x40,0xc1,0xc0,0xf3,0x3f]
152 // GFX9-ERR
: error
: invalid literal operand
154 v_add_f64 v
[0:1], 1.23456, -abs(1.23456)
155 // GFX10
: v_add_f64 v
[0:1], 0x3ff3c0c1, -|
0x3ff3c0c1| ; encoding
: [0x00,0x02,0x64,0xd5,0xff,0xfe,0x01,0x40,0xc1,0xc0,0xf3,0x3f]
156 // GFX9-ERR
: error
: invalid literal operand
158 v_add_f64 v
[0:1], 1.23456, -abs(1.2345)
159 // GFX10-ERR
: error
: invalid literal operand
160 // GFX9-ERR
: error
: invalid literal operand
162 v_max_i16_e64 v5
, 0xfe0b, v2
163 // GFX10
: v_max_i16_e64 v5
, 0xfe0b, v2 ; encoding
: [0x05,0x00,0x0a,0xd7,0xff,0x04,0x02,0x00,0x0b,0xfe,0x00,0x00]
164 // GFX9-ERR
: error
: invalid literal operand
166 v_max_i16_e64 v5
, v1
, 0x123
167 // GFX10
: v_max_i16_e64 v5
, v1
, 0x123 ; encoding
: [0x05,0x00,0x0a,0xd7,0x01,0xff,0x01,0x00,0x23,0x01,0x00,0x00]
168 // GFX9-ERR
: error
: invalid literal operand
170 v_max_i16_e64 v5
, 0x1234, 0x1234
171 // GFX10
: v_max_i16_e64 v5
, 0x1234, 0x1234 ; encoding
: [0x05,0x00,0x0a,0xd7,0xff,0xfe,0x01,0x00,0x34,0x12,0x00,0x00]
172 // GFX9-ERR
: error
: invalid literal operand
174 v_min3_i16 v5
, 0xfe0b, v2
, v3
175 // GFX10
: v_min3_i16 v5
, 0xfe0b, v2
, v3 ; encoding
: [0x05,0x00,0x52,0xd7,0xff,0x04,0x0e,0x04,0x0b,0xfe,0x00,0x00]
176 // GFX9-ERR
: error
: invalid literal operand
178 v_min3_i16 v5
, v1
, 0x1234, v3
179 // GFX10
: v_min3_i16 v5
, v1
, 0x1234, v3 ; encoding
: [0x05,0x00,0x52,0xd7,0x01,0xff,0x0d,0x04,0x34,0x12,0x00,0x00]
180 // GFX9-ERR
: error
: invalid literal operand
182 v_min3_i16 v5
, v1
, v2
, 0x5678
183 // GFX10
: v_min3_i16 v5
, v1
, v2
, 0x5678 ; encoding
: [0x05,0x00,0x52,0xd7,0x01,0x05,0xfe,0x03,0x78,0x56,0x00,0x00]
184 // GFX9-ERR
: error
: invalid literal operand
186 v_min3_i16 v5
, 0x5678, 0x5678, 0x5678
187 // GFX10
: v_min3_i16 v5
, 0x5678, 0x5678, 0x5678 ; encoding
: [0x05,0x00,0x52,0xd7,0xff,0xfe,0xfd,0x03,0x78,0x56,0x00,0x00]
188 // GFX9-ERR
: error
: invalid literal operand
190 v_min3_i16 v5
, 0x5678, 0x5679, 0x5678
191 // GFX10-ERR
: error
: invalid literal operand
192 // GFX9-ERR
: error
: invalid literal operand
194 v_min3_i16 v5
, 0x5678, 0x5678, 0x5679
195 // GFX10-ERR
: error
: invalid literal operand
196 // GFX9-ERR
: error
: invalid literal operand
198 v_add_nc_u16 v5
, 0xfe0b, v2
199 // GFX10
: v_add_nc_u16_e64 v5
, 0xfe0b, v2 ; encoding
: [0x05,0x00,0x03,0xd7,0xff,0x04,0x02,0x00,0x0b,0xfe,0x00,0x00]
201 v_add_nc_u16 v5
, v1
, 0x1234
202 // GFX10
: v_add_nc_u16_e64 v5
, v1
, 0x1234 ; encoding
: [0x05,0x00,0x03,0xd7,0x01,0xff,0x01,0x00,0x34,0x12,0x00,0x00]
204 v_add_nc_u16 v5
, 0x1234, 0x1234
205 // GFX10
: v_add_nc_u16_e64 v5
, 0x1234, 0x1234 ; encoding
: [0x05,0x00,0x03,0xd7,0xff,0xfe,0x01,0x00,0x34,0x12,0x00,0x00]
207 v_ashrrev_i16_e64 v5
, 0x3456, v2
208 // GFX10
: v_ashrrev_i16_e64 v5
, 0x3456, v2 ; encoding
: [0x05,0x00,0x08,0xd7,0xff,0x04,0x02,0x00,0x56,0x34,0x00,0x00]
209 // GFX9-ERR
: error
: invalid literal operand
211 v_mad_u16 v5
, 0xfe0b, v2
, v3
212 // GFX10
: v_mad_u16 v5
, 0xfe0b, v2
, v3 ; encoding
: [0x05,0x00,0x40,0xd7,0xff,0x04,0x0e,0x04,0x0b,0xfe,0x00,0x00]
213 // GFX9-ERR
: error
: invalid literal operand
215 v_mad_u16 v5
, v1
, 0x1234, v3
216 // GFX10
: v_mad_u16 v5
, v1
, 0x1234, v3 ; encoding
: [0x05,0x00,0x40,0xd7,0x01,0xff,0x0d,0x04,0x34,0x12,0x00,0x00]
217 // GFX9-ERR
: error
: invalid literal operand
219 v_mad_u16 v5
, v1
, v2
, 0x5678
220 // GFX10
: v_mad_u16 v5
, v1
, v2
, 0x5678 ; encoding
: [0x05,0x00,0x40,0xd7,0x01,0x05,0xfe,0x03,0x78,0x56,0x00,0x00]
221 // GFX9-ERR
: error
: invalid literal operand
223 v_mad_u16 v5
, 0x5678, 0x5678, 0x5678
224 // GFX10
: v_mad_u16 v5
, 0x5678, 0x5678, 0x5678 ; encoding
: [0x05,0x00,0x40,0xd7,0xff,0xfe,0xfd,0x03,0x78,0x56,0x00,0x00]
225 // GFX9-ERR
: error
: invalid literal operand
227 v_mad_legacy_f32 v5
, 0xaf123456, v2
, v3
228 // GFX10
: v_mad_legacy_f32 v5
, 0xaf123456, v2
, v3 ; encoding
: [0x05,0x00,0x40,0xd5,0xff,0x04,0x0e,0x04,0x56,0x34,0x12,0xaf]
229 // GFX9-ERR
: error
: invalid literal operand
231 v_mad_legacy_f32 v5
, v1
, 0xaf123456, v3
232 // GFX10
: v_mad_legacy_f32 v5
, v1
, 0xaf123456, v3 ; encoding
: [0x05,0x00,0x40,0xd5,0x01,0xff,0x0d,0x04,0x56,0x34,0x12,0xaf]
233 // GFX9-ERR
: error
: invalid literal operand
235 v_mad_legacy_f32 v5
, v1
, v2
, 0xaf123456
236 // GFX10
: v_mad_legacy_f32 v5
, v1
, v2
, 0xaf123456 ; encoding
: [0x05,0x00,0x40,0xd5,0x01,0x05,0xfe,0x03,0x56,0x34,0x12,0xaf]
237 // GFX9-ERR
: error
: invalid literal operand
239 v_mad_legacy_f32 v5
, 0xaf123456, 0xaf123456, 0xaf123456
240 // GFX10
: v_mad_legacy_f32 v5
, 0xaf123456, 0xaf123456, 0xaf123456 ; encoding
: [0x05,0x00,0x40,0xd5,0xff,0xfe,0xfd,0x03,0x56,0x34,0x12,0xaf]
241 // GFX9-ERR
: error
: invalid literal operand
243 v_cmp_f_i32_e64 s
[10:11], 0xaf123456, v2
244 // GFX10
: v_cmp_f_i32_e64 s
[10:11], 0xaf123456, v2 ; encoding
: [0x0a,0x00,0x80,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]
245 // GFX9-ERR
: error
: invalid literal operand
247 v_cmp_f_i32_e64 s
[10:11], v1
, 0xaf123456
248 // GFX10
: v_cmp_f_i32_e64 s
[10:11], v1
, 0xaf123456 ; encoding
: [0x0a,0x00,0x80,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x12,0xaf]
249 // GFX9-ERR
: error
: invalid literal operand
251 v_cmp_f_i32_e64 s
[10:11], 0xaf123456, 0xaf123456
252 // GFX10
: v_cmp_f_i32_e64 s
[10:11], 0xaf123456, 0xaf123456 ; encoding
: [0x0a,0x00,0x80,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
253 // GFX9-ERR
: error
: invalid literal operand
255 v_cmp_f_i32_e64 s
[10:11], 0xaf123456, 0xaf123455
256 // GFX10-ERR
: error
: invalid literal operand
258 v_cmp_f_u64_e64 s
[10:11], 0xaf123456, v
[2:3]
259 // GFX10
: v_cmp_f_u64_e64 s
[10:11], 0xaf123456, v
[2:3] ; encoding
: [0x0a,0x00,0xe0,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]
260 // GFX9-ERR
: error
: invalid literal operand
262 v_cmp_f_u64_e64 s
[10:11], v
[1:2], 0x3f717273
263 // GFX10
: v_cmp_f_u64_e64 s
[10:11], v
[1:2], 0x3f717273 ; encoding
: [0x0a,0x00,0xe0,0xd4,0x01,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]
264 // GFX9-ERR
: error
: invalid literal operand
266 v_cmp_f_u64_e64 s
[10:11], 0x3f717273, 0x3f717273
267 // GFX10
: v_cmp_f_u64_e64 s
[10:11], 0x3f717273, 0x3f717273 ; encoding
: [0x0a,0x00,0xe0,0xd4,0xff,0xfe,0x01,0x00,0x73,0x72,0x71,0x3f]
268 // GFX9-ERR
: error
: invalid literal operand
270 v_cmpx_class_f32_e64
0xaf123456, v2
271 // GFX10
: v_cmpx_class_f32_e64
0xaf123456, v2 ; encoding
: [0x00,0x00,0x98,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]
273 v_cmpx_class_f32_e64 v1
, 0xaf123456
274 // GFX10
: v_cmpx_class_f32_e64 v1
, 0xaf123456 ; encoding
: [0x00,0x00,0x98,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x12,0xaf]
276 v_cmpx_class_f32_e64
0xaf123456, 0xaf123456
277 // GFX10
: v_cmpx_class_f32_e64
0xaf123456, 0xaf123456 ; encoding
: [0x00,0x00,0x98,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x12,0xaf]
279 v_cmpx_class_f32_e64
0xaf123456, 0xaf123455
280 // GFX10-ERR
: error
: invalid literal operand
282 v_cmpx_lt_i16_e64 v1
, 0x3456
283 // GFX10
: v_cmpx_lt_i16_e64 v1
, 0x3456 ; encoding
: [0x00,0x00,0x99,0xd4,0x01,0xff,0x01,0x00,0x56,0x34,0x00,0x00]
285 v_cmpx_lt_i16_e64
0x3456, v2
286 // GFX10
: v_cmpx_lt_i16_e64
0x3456, v2 ; encoding
: [0x00,0x00,0x99,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x00,0x00]
288 v_cmpx_lt_i16_e64
0x3456, 0x3456
289 // GFX10
: v_cmpx_lt_i16_e64
0x3456, 0x3456 ; encoding
: [0x00,0x00,0x99,0xd4,0xff,0xfe,0x01,0x00,0x56,0x34,0x00,0x00]
291 v_cmpx_f_i64_e64
0xaf123456, v
[2:3]
292 // GFX10
: v_cmpx_f_i64_e64
0xaf123456, v
[2:3] ; encoding
: [0x00,0x00,0xb0,0xd4,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]
294 v_cmpx_f_i64_e64 v
[1:2], 0x3f717273
295 // GFX10
: v_cmpx_f_i64_e64 v
[1:2], 0x3f717273 ; encoding
: [0x00,0x00,0xb0,0xd4,0x01,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]
297 v_cmpx_f_i64_e64
0x3f717273, 0x3f717273
298 // GFX10
: v_cmpx_f_i64_e64
0x3f717273, 0x3f717273 ; encoding
: [0x00,0x00,0xb0,0xd4,0xff,0xfe,0x01,0x00,0x73,0x72,0x71,0x3f]
300 v_lshlrev_b64 v
[5:6], 0xaf123456, v
[2:3]
301 // GFX10
: v_lshlrev_b64 v
[5:6], 0xaf123456, v
[2:3] ; encoding
: [0x05,0x00,0xff,0xd6,0xff,0x04,0x02,0x00,0x56,0x34,0x12,0xaf]
302 // GFX9-ERR
: error
: invalid literal operand
304 v_lshlrev_b64 v
[5:6], v1
, 0x3f717273
305 // GFX10
: v_lshlrev_b64 v
[5:6], v1
, 0x3f717273 ; encoding
: [0x05,0x00,0xff,0xd6,0x01,0xff,0x01,0x00,0x73,0x72,0x71,0x3f]
306 // GFX9-ERR
: error
: invalid literal operand
308 v_fma_mix_f32 v5
, 0x123, v2
, v3
309 // GFX10
: v_fma_mix_f32 v5
, 0x123, v2
, v3 ; encoding
: [0x05,0x00,0x20,0xcc,0xff,0x04,0x0e,0x04,0x23,0x01,0x00,0x00]
311 v_fma_mix_f32 v5
, v1
, 0x7b, v3
312 // GFX10
: v_fma_mix_f32 v5
, v1
, 0x7b, v3 ; encoding
: [0x05,0x00,0x20,0xcc,0x01,0xff,0x0d,0x04,0x7b,0x00,0x00,0x00]
314 v_fma_mix_f32 v5
, v1
, v2
, 0x1c8
315 // GFX10
: v_fma_mix_f32 v5
, v1
, v2
, 0x1c8 ; encoding
: [0x05,0x00,0x20,0xcc,0x01,0x05,0xfe,0x03,0xc8,0x01,0x00,0x00]
317 v_fma_mix_f32 v5
, 0x1c8a, v2
, 0x1c8a
318 // GFX10
: v_fma_mix_f32 v5
, 0x1c8a, v2
, 0x1c8a ; encoding
: [0x05,0x00,0x20,0xcc,0xff,0x04,0xfe,0x03,0x8a,0x1c,0x00,0x00]
320 v_fma_mix_f32 v5
, 0x1c8a, 0x1c8a, 0x1c8a
321 // GFX10
: v_fma_mix_f32 v5
, 0x1c8a, 0x1c8a, 0x1c8a ; encoding
: [0x05,0x00,0x20,0xcc,0xff,0xfe,0xfd,0x03,0x8a,0x1c,0x00,0x00]
323 v_pk_add_f16 v5
, 0xaf123456, v2
324 // GFX10
: v_pk_add_f16 v5
, 0xaf123456, v2 ; encoding
: [0x05,0x00,0x0f,0xcc,0xff,0x04,0x02,0x18,0x56,0x34,0x12,0xaf]
325 // GFX9-ERR
: error
: invalid literal operand
327 v_pk_add_f16 v5
, v1
, 0x3f717273
328 // GFX10
: v_pk_add_f16 v5
, v1
, 0x3f717273 ; encoding
: [0x05,0x00,0x0f,0xcc,0x01,0xff,0x01,0x18,0x73,0x72,0x71,0x3f]
329 // GFX9-ERR
: error
: invalid literal operand
331 v_pk_add_f16 v5
, 0x3f717273, 0x3f717273
332 // GFX10
: v_pk_add_f16 v5
, 0x3f717273, 0x3f717273 ; encoding
: [0x05,0x00,0x0f,0xcc,0xff,0xfe,0x01,0x18,0x73,0x72,0x71,0x3f]
333 // GFX9-ERR
: error
: invalid literal operand
335 v_pk_add_i16 v5
, 0x7b, v2
336 // GFX10
: v_pk_add_i16 v5
, 0x7b, v2 ; encoding
: [0x05,0x00,0x02,0xcc,0xff,0x04,0x02,0x18,0x7b,0x00,0x00,0x00]
337 // GFX9-ERR
: error
: invalid literal operand
339 v_pk_add_i16 v5
, v1
, 0x7b
340 // GFX10
: v_pk_add_i16 v5
, v1
, 0x7b ; encoding
: [0x05,0x00,0x02,0xcc,0x01,0xff,0x01,0x18,0x7b,0x00,0x00,0x00]
341 // GFX9-ERR
: error
: invalid literal operand
343 v_pk_add_i16 v5
, 0xab7b, 0xab7b
344 // GFX10
: v_pk_add_i16 v5
, 0xab7b, 0xab7b ; encoding
: [0x05,0x00,0x02,0xcc,0xff,0xfe,0x01,0x18,0x7b,0xab,0x00,0x00]
345 // GFX9-ERR
: error
: invalid literal operand
347 v_pk_add_i16 v5
, 0xab7b, 0xab7a
348 // GFX10-ERR
: error
: invalid literal operand
349 // GFX9-ERR
: error
: invalid literal operand
351 v_div_fmas_f32 v5
, v1
, 0x123, v3
352 // GFX10
: v_div_fmas_f32 v5
, v1
, 0x123, v3 ; encoding
: [0x05,0x00,0x6f,0xd5,0x01,0xff,0x0d,0x04,0x23,0x01,0x00,0x00]
353 // GFX9-ERR
: error
: invalid literal operand
355 v_div_fmas_f32 v5
, v1
, 0x123, 0x123
356 // GFX10
: v_div_fmas_f32 v5
, v1
, 0x123, 0x123 ; encoding
: [0x05,0x00,0x6f,0xd5,0x01,0xff,0xfd,0x03,0x23,0x01,0x00,0x00]
357 // GFX9-ERR
: error
: invalid literal operand
359 v_div_fmas_f32 v5
, 0x123, 0x123, 0x123
360 // GFX10
: v_div_fmas_f32 v5
, 0x123, 0x123, 0x123 ; encoding
: [0x05,0x00,0x6f,0xd5,0xff,0xfe,0xfd,0x03,0x23,0x01,0x00,0x00]
361 // GFX9-ERR
: error
: invalid literal operand
363 v_div_fmas_f64 v
[5:6], 0x12345678, v
[2:3], v
[3:4]
364 // GFX10
: v_div_fmas_f64 v
[5:6], 0x12345678, v
[2:3], v
[3:4] ; encoding
: [0x05,0x00,0x70,0xd5,0xff,0x04,0x0e,0x04,0x78,0x56,0x34,0x12]
365 // GFX9-ERR
: error
: invalid literal operand
367 v_div_fmas_f64 v
[5:6], 0x12345678, 0x12345678, 0x12345678
368 // GFX10
: v_div_fmas_f64 v
[5:6], 0x12345678, 0x12345678, 0x12345678 ; encoding
: [0x05,0x00,0x70,0xd5,0xff,0xfe,0xfd,0x03,0x78,0x56,0x34,0x12]
369 // GFX9-ERR
: error
: invalid literal operand
371 v_div_fmas_f64 v
[5:6], v
[1:2], 0x123457, 0x123456
372 // GFX10-ERR
: error
: invalid literal operand
373 // GFX9-ERR
: error
: invalid literal operand
375 v_ldexp_f64 v
[5:6], 0.12345, v2
376 // GFX10
: v_ldexp_f64 v
[5:6], 0x3fbf9a6b, v2 ; encoding
: [0x05,0x00,0x68,0xd5,0xff,0x04,0x02,0x00,0x6b,0x9a,0xbf,0x3f]
377 // GFX9-ERR
: error
: invalid literal operand
379 v_ldexp_f64 v
[5:6], 0.12345, 0x3fbf9a6b
380 // GFX10
: v_ldexp_f64 v
[5:6], 0x3fbf9a6b, 0x3fbf9a6b ; encoding
: [0x05,0x00,0x68,0xd5,0xff,0xfe,0x01,0x00,0x6b,0x9a,0xbf,0x3f]
381 // GFX9-ERR
: error
: invalid literal operand
383 v_ldexp_f64 v
[5:6], 0.12345, 0x3fbf9a6c
384 // GFX10-ERR
: error
: invalid literal operand
385 // GFX9-ERR
: error
: invalid literal operand