[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / Disassembler / AMDGPU / vop3_vi.txt
blobb4c2f183ca1364e4f9fab5866fde46004865a822
1 # RUN: llvm-mc -arch=amdgcn -mcpu=tonga -disassemble -show-encoding < %s | FileCheck %s -check-prefix=VI
3 # VI:   v_cmp_lt_f32_e64 s[2:3], v4, -v6 ; encoding: [0x02,0x00,0x41,0xd0,0x04,0x0d,0x02,0x40]
4 0x02 0x00 0x41 0xd0 0x04 0x0d 0x02 0x40
6 # VI: v_cmp_lt_f32_e64 vcc, v4, v6 ; encoding: [0x6a,0x00,0x41,0xd0,0x04,0x0d,0x02,0x00]
7 0x6a 0x00 0x41 0xd0 0x04 0x0d 0x02 0x00
9 # VI:   v_cmp_lt_f32_e64 s[2:3], -v4, v6 ; encoding: [0x02,0x00,0x41,0xd0,0x04,0x0d,0x02,0x20]
10 0x02 0x00 0x41 0xd0 0x04 0x0d 0x02 0x20
12 # VI:   v_cmp_lt_f32_e64 s[2:3], v4, -v6 ; encoding: [0x02,0x00,0x41,0xd0,0x04,0x0d,0x02,0x40]
13 0x02 0x00 0x41 0xd0 0x04 0x0d 0x02 0x40
15 # VI:   v_cmp_lt_f32_e64 s[2:3], -v4, -v6 ; encoding: [0x02,0x00,0x41,0xd0,0x04,0x0d,0x02,0x60]
16 0x02 0x00 0x41 0xd0 0x04 0x0d 0x02 0x60
18 # VI:   v_cmp_lt_f32_e64 s[2:3], |v4|, v6 ; encoding: [0x02,0x01,0x41,0xd0,0x04,0x0d,0x02,0x00]
19 0x02 0x01 0x41 0xd0 0x04 0x0d 0x02 0x00
21 # VI:   v_cmp_lt_f32_e64 s[2:3], v4, |v6| ; encoding: [0x02,0x02,0x41,0xd0,0x04,0x0d,0x02,0x00]
22 0x02 0x02 0x41 0xd0 0x04 0x0d 0x02 0x00
24 # VI:   v_cmp_lt_f32_e64 s[2:3], |v4|, |v6| ; encoding: [0x02,0x03,0x41,0xd0,0x04,0x0d,0x02,0x00]
25 0x02 0x03 0x41 0xd0 0x04 0x0d 0x02 0x00
27 # VI:   v_cmp_lt_f32_e64 s[2:3], -|v4|, v6 ; encoding: [0x02,0x01,0x41,0xd0,0x04,0x0d,0x02,0x20]
28 0x02 0x01 0x41 0xd0 0x04 0x0d 0x02 0x20
30 # VI:   v_cmp_lt_f32_e64 s[2:3], -|v4|, v6 ; encoding: [0x02,0x01,0x41,0xd0,0x04,0x0d,0x02,0x20]
31 0x02 0x01 0x41 0xd0 0x04 0x0d 0x02 0x20
33 # VI:   v_cmp_lt_f32_e64 s[2:3], v4, -|v6| ; encoding: [0x02,0x02,0x41,0xd0,0x04,0x0d,0x02,0x40]
34 0x02 0x02 0x41 0xd0 0x04 0x0d 0x02 0x40
36 # VI:   v_cmp_lt_f32_e64 s[2:3], v4, -|v6| ; encoding: [0x02,0x02,0x41,0xd0,0x04,0x0d,0x02,0x40]
37 0x02 0x02 0x41 0xd0 0x04 0x0d 0x02 0x40
39 # VI:   v_cmp_lt_f32_e64 s[2:3], -|v4|, -|v6| ; encoding: [0x02,0x03,0x41,0xd0,0x04,0x0d,0x02,0x60]
40 0x02 0x03 0x41 0xd0 0x04 0x0d 0x02 0x60
42 # VI:   v_cmp_lt_f32_e64 s[2:3], -|v4|, -|v6| ; encoding: [0x02,0x03,0x41,0xd0,0x04,0x0d,0x02,0x60]
43 0x02 0x03 0x41 0xd0 0x04 0x0d 0x02 0x60
45 # VI:   v_cmp_f_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x40,0xd0,0x04,0x0d,0x02,0x00]
46 0x02 0x00 0x40 0xd0 0x04 0x0d 0x02 0x00
48 # VI:   v_cmp_lt_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x41,0xd0,0x04,0x0d,0x02,0x00]
49 0x02 0x00 0x41 0xd0 0x04 0x0d 0x02 0x00
51 # VI:   v_cmp_eq_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x42,0xd0,0x04,0x0d,0x02,0x00]
52 0x02 0x00 0x42 0xd0 0x04 0x0d 0x02 0x00
54 # VI:   v_cmp_le_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x43,0xd0,0x04,0x0d,0x02,0x00]
55 0x02 0x00 0x43 0xd0 0x04 0x0d 0x02 0x00
57 # VI:   v_cmp_gt_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x44,0xd0,0x04,0x0d,0x02,0x00]
58 0x02 0x00 0x44 0xd0 0x04 0x0d 0x02 0x00
60 # VI:   v_cmp_lg_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x45,0xd0,0x04,0x0d,0x02,0x00]
61 0x02 0x00 0x45 0xd0 0x04 0x0d 0x02 0x00
63 # VI:   v_cmp_ge_f32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0x46,0xd0,0x04,0x0d,0x02,0x00]
64 0x02 0x00 0x46 0xd0 0x04 0x0d 0x02 0x00
66 # VI:   v_cmp_f_f64_e64 s[2:3], v[4:5], v[6:7] ; encoding: [0x02,0x00,0x60,0xd0,0x04,0x0d,0x02,0x00]
67 0x02 0x00 0x60 0xd0 0x04 0x0d 0x02 0x00
69 # VI:   v_cmp_f_i32_e64 s[2:3], v4, v6 ; encoding: [0x02,0x00,0xc0,0xd0,0x04,0x0d,0x02,0x00]
70 0x02 0x00 0xc0 0xd0 0x04 0x0d 0x02 0x00
72 # VI:   v_cmp_f_i64_e64 s[2:3], v[4:5], v[6:7] ; encoding: [0x02,0x00,0xe0,0xd0,0x04,0x0d,0x02,0x00]
73 0x02 0x00 0xe0 0xd0 0x04 0x0d 0x02 0x00
75 # VI:   v_mov_b32_e64 v1, v2 ; encoding: [0x01,0x00,0x41,0xd1,0x02,0x01,0x00,0x00]
76 0x01 0x00 0x41 0xd1 0x02 0x01 0x00 0x00
78 # VI:   v_nop ; encoding: [0x00,0x00,0x40,0xd1,0x00,0x00,0x00,0x00]
79 0x00 0x00 0x40 0xd1 0x00 0x00 0x00 0x00
81 # VI:   v_clrexcp ; encoding: [0x00,0x00,0x75,0xd1,0x00,0x00,0x00,0x00]
82 0x00 0x00 0x75 0xd1 0x00 0x00 0x00 0x00
84 # VI:   v_fract_f64_e64 v[5:6], s[2:3] ; encoding: [0x05,0x00,0x72,0xd1,0x02,0x00,0x00,0x00]
85 0x05,0x00,0x72,0xd1,0x02,0x00,0x00,0x00
87 # VI:   v_fract_f64_e64 v[5:6], -4.0 ; encoding: [0x05,0x00,0x72,0xd1,0xf7,0x00,0x00,0x00]
88 0x05,0x00,0x72,0xd1,0xf7,0x00,0x00,0x00
90 # VI:   v_fract_f64_e64 v[5:6], -s[2:3] ; encoding: [0x05,0x00,0x72,0xd1,0x02,0x00,0x00,0x20]
91 0x05,0x00,0x72,0xd1,0x02,0x00,0x00,0x20
93 # VI:   v_fract_f64_e64 v[5:6], |s[2:3]| ; encoding: [0x05,0x01,0x72,0xd1,0x02,0x00,0x00,0x00]
94 0x05,0x01,0x72,0xd1,0x02,0x00,0x00,0x00
96 # VI:   v_fract_f64_e64 v[5:6], s[2:3] clamp ; encoding: [0x05,0x80,0x72,0xd1,0x02,0x00,0x00,0x00]
97 0x05,0x80,0x72,0xd1,0x02,0x00,0x00,0x00
99 # VI:   v_fract_f64_e64 v[5:6], s[2:3] mul:2 ; encoding: [0x05,0x00,0x72,0xd1,0x02,0x00,0x00,0x08]
100 0x05,0x00,0x72,0xd1,0x02,0x00,0x00,0x08
102 # VI:   v_fract_f32_e64 v1, -v2 ; encoding: [0x01,0x00,0x5b,0xd1,0x02,0x01,0x00,0x20]
103 0x01 0x00 0x5b 0xd1 0x02 0x01 0x00 0x20
105 # VI:   v_fract_f32_e64 v1, |v2| ; encoding: [0x01,0x01,0x5b,0xd1,0x02,0x01,0x00,0x00]
106 0x01 0x01 0x5b 0xd1 0x02 0x01 0x00 0x00
108 # VI:   v_fract_f32_e64 v1, |v2| ; encoding: [0x01,0x01,0x5b,0xd1,0x02,0x01,0x00,0x00]
109 0x01 0x01 0x5b 0xd1 0x02 0x01 0x00 0x00
111 # VI:   v_fract_f32_e64 v1, -|v2| ; encoding: [0x01,0x01,0x5b,0xd1,0x02,0x01,0x00,0x20]
112 0x01 0x01 0x5b 0xd1 0x02 0x01 0x00 0x20
114 # VI:   v_fract_f32_e64 v1, -|v2| ; encoding: [0x01,0x01,0x5b,0xd1,0x02,0x01,0x00,0x20]
115 0x01 0x01 0x5b 0xd1 0x02 0x01 0x00 0x20
117 # VI:   v_fract_f32_e64 v1, v2 clamp ; encoding: [0x01,0x80,0x5b,0xd1,0x02,0x01,0x00,0x00]
118 0x01 0x80 0x5b 0xd1 0x02 0x01 0x00 0x00
120 # VI:   v_fract_f32_e64 v1, v2 mul:2 ; encoding: [0x01,0x00,0x5b,0xd1,0x02,0x01,0x00,0x08]
121 0x01 0x00 0x5b 0xd1 0x02 0x01 0x00 0x08
123 # VI:   v_fract_f32_e64 v1, v2 clamp div:2 ; encoding: [0x01,0x80,0x5b,0xd1,0x02,0x01,0x00,0x18]
124 0x01 0x80 0x5b 0xd1 0x02 0x01 0x00 0x18
126 # VI:   v_add_f32_e64 v1, v3, v5 ; encoding: [0x01,0x00,0x01,0xd1,0x03,0x0b,0x02,0x00]
127 0x01 0x00 0x01 0xd1 0x03 0x0b 0x02 0x00
129 # VI:   v_cndmask_b32_e64 v1, v3, v5, s[4:5] ; encoding: [0x01,0x00,0x00,0xd1,0x03,0x0b,0x12,0x00]
130 0x01 0x00 0x00 0xd1 0x03 0x0b 0x12 0x00
132 # VI:   v_cndmask_b32_e64 v1, v3, v5, vcc ; encoding: [0x01,0x00,0x00,0xd1,0x03,0x0b,0xaa,0x01]
133 0x01 0x00 0x00 0xd1 0x03 0x0b 0xaa 0x01
135 # VI:   v_cndmask_b32_e64 v1, -v3, v5, s[4:5] ; encoding: [0x01,0x00,0x00,0xd1,0x03,0x0b,0x12,0x20]
136 0x01,0x00,0x00,0xd1,0x03,0x0b,0x12,0x20
138 # VI:   v_cndmask_b32_e64 v1, v3, |v5|, s[4:5] ; encoding: [0x01,0x02,0x00,0xd1,0x03,0x0b,0x12,0x00]
139 0x01,0x02,0x00,0xd1,0x03,0x0b,0x12,0x00
141 # VI:   v_cndmask_b32_e64 v1, -|v3|, v5, vcc ; encoding: [0x01,0x01,0x00,0xd1,0x03,0x0b,0xaa,0x21]
142 0x01,0x01,0x00,0xd1,0x03,0x0b,0xaa,0x21
144 # VI:   v_add_f32_e64 v1, v3, s5 ; encoding: [0x01,0x00,0x01,0xd1,0x03,0x0b,0x00,0x00]
145 0x01 0x00 0x01 0xd1 0x03 0x0b 0x00 0x00
147 # VI:   v_sub_f32_e64 v1, v3, s5 ; encoding: [0x01,0x00,0x02,0xd1,0x03,0x0b,0x00,0x00]
148 0x01 0x00 0x02 0xd1 0x03 0x0b 0x00 0x00
150 # VI:   v_subrev_f32_e64 v1, v3, s5 ; encoding: [0x01,0x00,0x03,0xd1,0x03,0x0b,0x00,0x00]
151 0x01 0x00 0x03 0xd1 0x03 0x0b 0x00 0x00
153 # VI:   v_mul_legacy_f32_e64 v1, v3, s5 ; encoding: [0x01,0x00,0x04,0xd1,0x03,0x0b,0x00,0x00]
154 0x01 0x00 0x04 0xd1 0x03 0x0b 0x00 0x00
156 # VI:   v_mul_f32_e64 v1, v3, s5 ; encoding: [0x01,0x00,0x05,0xd1,0x03,0x0b,0x00,0x00]
157 0x01 0x00 0x05 0xd1 0x03 0x0b 0x00 0x00
159 # VI:   v_mul_i32_i24_e64 v1, v3, s5 ; encoding: [0x01,0x00,0x06,0xd1,0x03,0x0b,0x00,0x00]
160 0x01 0x00 0x06 0xd1 0x03 0x0b 0x00 0x00
162 # VI:   v_mad_legacy_f32 v2, v4, v6, v8 ; encoding: [0x02,0x00,0xc0,0xd1,0x04,0x0d,0x22,0x04]
163 0x02 0x00 0xc0 0xd1 0x04 0x0d 0x22 0x04
165 # VI:   v_add_f64 v[0:1], v[2:3], v[5:6] ; encoding: [0x00,0x00,0x80,0xd2,0x02,0x0b,0x02,0x00]
166 0x00 0x00 0x80 0xd2 0x02 0x0b 0x02 0x00
168 # VI:   v_add_f64 v[0:1], v[2:3], v[5:6] ; encoding: [0x00,0x00,0x80,0xd2,0x02,0x0b,0x02,0x00]
169 0x00 0x00 0x80 0xd2 0x02 0x0b 0x02 0x00
171 # VI:   v_add_f64 v[0:1], -v[2:3], v[5:6] ; encoding: [0x00,0x00,0x80,0xd2,0x02,0x0b,0x02,0x20]
172 0x00 0x00 0x80 0xd2 0x02 0x0b 0x02 0x20
174 # VI:   v_add_f64 v[0:1], -v[2:3], v[5:6] ; encoding: [0x00,0x00,0x80,0xd2,0x02,0x0b,0x02,0x20]
175 0x00 0x00 0x80 0xd2 0x02 0x0b 0x02 0x20
177 # VI:   v_add_f64 v[0:1], v[2:3], -v[5:6] ; encoding: [0x00,0x00,0x80,0xd2,0x02,0x0b,0x02,0x40]
178 0x00 0x00 0x80 0xd2 0x02 0x0b 0x02 0x40
180 # VI:   v_add_f64 v[0:1], v[2:3], -v[5:6] ; encoding: [0x00,0x00,0x80,0xd2,0x02,0x0b,0x02,0x40]
181 0x00 0x00 0x80 0xd2 0x02 0x0b 0x02 0x40
183 # VI:   v_add_f64 v[0:1], |v[2:3]|, v[5:6] ; encoding: [0x00,0x01,0x80,0xd2,0x02,0x0b,0x02,0x00]
184 0x00 0x01 0x80 0xd2 0x02 0x0b 0x02 0x00
186 # VI:   v_add_f64 v[0:1], |v[2:3]|, v[5:6] ; encoding: [0x00,0x01,0x80,0xd2,0x02,0x0b,0x02,0x00]
187 0x00 0x01 0x80 0xd2 0x02 0x0b 0x02 0x00
189 # VI:   v_add_f64 v[0:1], |v[2:3]|, v[5:6] ; encoding: [0x00,0x01,0x80,0xd2,0x02,0x0b,0x02,0x00]
190 0x00 0x01 0x80 0xd2 0x02 0x0b 0x02 0x00
192 # VI:   v_add_f64 v[0:1], |v[2:3]|, v[5:6] ; encoding: [0x00,0x01,0x80,0xd2,0x02,0x0b,0x02,0x00]
193 0x00 0x01 0x80 0xd2 0x02 0x0b 0x02 0x00
195 # VI:   v_add_f64 v[0:1], v[2:3], |v[5:6]| ; encoding: [0x00,0x02,0x80,0xd2,0x02,0x0b,0x02,0x00]
196 0x00 0x02 0x80 0xd2 0x02 0x0b 0x02 0x00
198 # VI:   v_add_f64 v[0:1], v[2:3], |v[5:6]| ; encoding: [0x00,0x02,0x80,0xd2,0x02,0x0b,0x02,0x00]
199 0x00 0x02 0x80 0xd2 0x02 0x0b 0x02 0x00
201 # VI:   v_add_f64 v[0:1], v[2:3], |v[5:6]| ; encoding: [0x00,0x02,0x80,0xd2,0x02,0x0b,0x02,0x00]
202 0x00 0x02 0x80 0xd2 0x02 0x0b 0x02 0x00
204 # VI:   v_add_f64 v[0:1], v[2:3], |v[5:6]| ; encoding: [0x00,0x02,0x80,0xd2,0x02,0x0b,0x02,0x00]
205 0x00 0x02 0x80 0xd2 0x02 0x0b 0x02 0x00
207 # VI:   v_add_f64 v[0:1], -v[2:3], |v[5:6]| clamp mul:4 ; encoding: [0x00,0x82,0x80,0xd2,0x02,0x0b,0x02,0x30]
208 0x00 0x82 0x80 0xd2 0x02 0x0b 0x02 0x30
210 # VI:   v_add_f64 v[0:1], -v[2:3], |v[5:6]| clamp mul:4 ; encoding: [0x00,0x82,0x80,0xd2,0x02,0x0b,0x02,0x30]
211 0x00 0x82 0x80 0xd2 0x02 0x0b 0x02 0x30
213 # VI:   v_add_f64 v[0:1], -v[2:3], |v[5:6]| clamp mul:4 ; encoding: [0x00,0x82,0x80,0xd2,0x02,0x0b,0x02,0x30]
214 0x00 0x82 0x80 0xd2 0x02 0x0b 0x02 0x30
216 # VI:   v_add_f64 v[0:1], -v[2:3], |v[5:6]| clamp mul:4 ; encoding: [0x00,0x82,0x80,0xd2,0x02,0x0b,0x02,0x30]
217 0x00 0x82 0x80 0xd2 0x02 0x0b 0x02 0x30
219 # VI:   v_div_scale_f64 v[24:25], vcc, v[22:23], v[22:23], v[20:21] ; encoding: [0x18,0x6a,0xe1,0xd1,0x16,0x2d,0x52,0x04]
220 0x18 0x6a 0xe1 0xd1 0x16 0x2d 0x52 0x04
222 # VI:   v_div_scale_f64 v[24:25], s[10:11], v[22:23], v[20:21], v[20:21] ; encoding: [0x18,0x0a,0xe1,0xd1,0x16,0x29,0x52,0x04]
223 0x18 0x0a 0xe1 0xd1 0x16 0x29 0x52 0x04
225 # VI:   v_div_scale_f32 v24, vcc, v22, v22, v20 ; encoding: [0x18,0x6a,0xe0,0xd1,0x16,0x2d,0x52,0x04]
226 0x18 0x6a 0xe0 0xd1 0x16 0x2d 0x52 0x04
228 # FIXME:   v_div_scale_f32 v24, vcc, s[10:11], v22, v20 ; encoding: [0x18,0x6a,0xe0,0xd1,0x0a,0x2c,0x52,0x04]
229 0x18 0x6a 0xe0 0xd1 0x0a 0x2c 0x52 0x04
231 # VI:   v_div_scale_f32 v24, s[10:11], v22, v22, v20 ; encoding: [0x18,0x0a,0xe0,0xd1,0x16,0x2d,0x52,0x04]
232 0x18 0x0a 0xe0 0xd1 0x16 0x2d 0x52 0x04
234 # VI:   v_div_scale_f32 v24, vcc, v22, 1.0, v22 ; encoding: [0x18,0x6a,0xe0,0xd1,0x16,0xe5,0x59,0x04]
235 0x18 0x6a 0xe0 0xd1 0x16 0xe5 0x59 0x04
237 # VI:   v_div_scale_f32 v24, vcc, v22, v22, -2.0 ; encoding: [0x18,0x6a,0xe0,0xd1,0x16,0x2d,0xd6,0x03]
238 0x18 0x6a 0xe0 0xd1 0x16 0x2d 0xd6 0x03
240 # VI:   v_div_scale_f32 v24, vcc, v22, v22, -2.0 ; encoding: [0x18,0x6a,0xe0,0xd1,0x16,0x2d,0xd6,0x03]
241 0x18 0x6a 0xe0 0xd1 0x16 0x2d 0xd6 0x03
243 # VI:   v_mad_f32 v9, 0.5, v5, -v8      ; encoding: [0x09,0x00,0xc1,0xd1,0xf0,0x0a,0x22,0x84]
244 0x09 0x00 0xc1 0xd1 0xf0 0x0a 0x22 0x84
246 # VI:   v_ceil_f32_e64 v0, neg(-1)      ; encoding: [0x00,0x00,0x5d,0xd1,0xc1,0x00,0x00,0x20]
247 0x00,0x00,0x5d,0xd1,0xc1,0x00,0x00,0x20
249 # VI:   v_ceil_f32_e64 v0, neg(-1.0)    ; encoding: [0x00,0x00,0x5d,0xd1,0xf3,0x00,0x00,0x20]
250 0x00,0x00,0x5d,0xd1,0xf3,0x00,0x00,0x20
252 # VI: v_fma_f16 v5, v1, v2, v3    ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x04]
253 0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x04
255 # VI: v_fma_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0xee,0xd1,0xf0,0x04,0x0e,0x04]
256 0x05,0x00,0xee,0xd1,0xf0,0x04,0x0e,0x04
258 # VI: v_fma_f16 v5, v1, v2, |v3|    ; encoding: [0x05,0x04,0xee,0xd1,0x01,0x05,0x0e,0x04]
259 0x05,0x04,0xee,0xd1,0x01,0x05,0x0e,0x04
261 # VI: v_fma_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xee,0xd1,0x01,0x05,0x0e,0x04]
262 0x05,0x80,0xee,0xd1,0x01,0x05,0x0e,0x04
264 # CHECK: v_div_fixup_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0xef,0xd1,0xf0,0x04,0x0e,0x04]
265 0x05,0x00,0xef,0xd1,0xf0,0x04,0x0e,0x04
267 # CHECK: v_div_fixup_f16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0xef,0xd1,0x01,0xe1,0x0d,0x04]
268 0x05,0x00,0xef,0xd1,0x01,0xe1,0x0d,0x04
270 # CHECK: v_div_fixup_f16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0xc2,0x03]
271 0x05,0x00,0xef,0xd1,0x01,0x05,0xc2,0x03
273 # CHECK: v_div_fixup_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0x0e,0xe4]
274 0x05,0x00,0xef,0xd1,0x01,0x05,0x0e,0xe4
276 # CHECK: v_div_fixup_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xef,0xd1,0x01,0x05,0x0e,0x04]
277 0x05,0x07,0xef,0xd1,0x01,0x05,0x0e,0x04
279 # CHECK: v_div_fixup_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xef,0xd1,0x01,0x05,0x0e,0x04]
280 0x05,0x80,0xef,0xd1,0x01,0x05,0x0e,0x04
282 # CHECK: v_mad_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0xea,0xd1,0xf0,0x04,0x0e,0x04]
283 0x05,0x00,0xea,0xd1,0xf0,0x04,0x0e,0x04
285 # CHECK: v_mad_f16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0xea,0xd1,0x01,0xe1,0x0d,0x04]
286 0x05,0x00,0xea,0xd1,0x01,0xe1,0x0d,0x04
288 # CHECK: v_mad_f16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0xc2,0x03]
289 0x05,0x00,0xea,0xd1,0x01,0x05,0xc2,0x03
291 # CHECK: v_mad_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0x0e,0xe4]
292 0x05,0x00,0xea,0xd1,0x01,0x05,0x0e,0xe4
294 # CHECK: v_mad_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xea,0xd1,0x01,0x05,0x0e,0x04]
295 0x05,0x07,0xea,0xd1,0x01,0x05,0x0e,0x04
297 # CHECK: v_mad_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xea,0xd1,0x01,0x05,0x0e,0x04]
298 0x05,0x80,0xea,0xd1,0x01,0x05,0x0e,0x04
300 # CHECK: v_mad_i16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0xec,0xd1,0xf0,0x04,0x0e,0x04]
301 0x05,0x00,0xec,0xd1,0xf0,0x04,0x0e,0x04
303 # CHECK: v_mad_i16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0xec,0xd1,0x01,0xe1,0x0d,0x04]
304 0x05,0x00,0xec,0xd1,0x01,0xe1,0x0d,0x04
306 # CHECK: v_mad_i16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0xec,0xd1,0x01,0x05,0xc2,0x03]
307 0x05,0x00,0xec,0xd1,0x01,0x05,0xc2,0x03
309 # CHECK: v_mad_u16 v5, 0, v2, v3    ; encoding: [0x05,0x00,0xeb,0xd1,0x80,0x04,0x0e,0x04]
310 0x05,0x00,0xeb,0xd1,0x80,0x04,0x0e,0x04
312 # CHECK: v_mad_u16 v5, v1, -1, v3    ; encoding: [0x05,0x00,0xeb,0xd1,0x01,0x83,0x0d,0x04]
313 0x05,0x00,0xeb,0xd1,0x01,0x83,0x0d,0x04
315 # CHECK: v_mad_u16 v5, v1, v2, -4.0    ; encoding: [0x05,0x00,0xeb,0xd1,0x01,0x05,0xde,0x03]
316 0x05,0x00,0xeb,0xd1,0x01,0x05,0xde,0x03
318 # VI: v_interp_mov_f32_e64 v5, p10, attr0.x    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x00]
319 0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x00
321 # VI: v_interp_mov_f32_e64 v5, p10, attr32.x    ; encoding: [0x05,0x00,0x72,0xd2,0x20,0x00,0x00,0x00]
322 0x05,0x00,0x72,0xd2,0x20,0x00,0x00,0x00
324 # VI: v_interp_mov_f32_e64 v5, p20, attr0.x    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x02,0x00,0x00]
325 0x05,0x00,0x72,0xd2,0x00,0x02,0x00,0x00
327 # VI: v_interp_mov_f32_e64 v5, p10, attr0.w    ; encoding: [0x05,0x00,0x72,0xd2,0xc0,0x00,0x00,0x00]
328 0x05,0x00,0x72,0xd2,0xc0,0x00,0x00,0x00
330 # VI: v_interp_mov_f32_e64 v5, p10, attr0.x clamp    ; encoding: [0x05,0x80,0x72,0xd2,0x00,0x00,0x00,0x00]
331 0x05,0x80,0x72,0xd2,0x00,0x00,0x00,0x00
333 # VI: v_interp_mov_f32_e64 v5, p10, attr0.x mul:2    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x08]
334 0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x08
336 # VI: v_interp_mov_f32_e64 v5, p10, attr0.x mul:4    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x10]
337 0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x10
339 # VI: v_interp_mov_f32_e64 v5, p10, attr0.x div:2    ; encoding: [0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x18]
340 0x05,0x00,0x72,0xd2,0x00,0x00,0x00,0x18
342 # VI: v_interp_p1_f32_e64 v255, v2, attr0.x    ; encoding: [0xff,0x00,0x70,0xd2,0x00,0x04,0x02,0x00]
343 0xff,0x00,0x70,0xd2,0x00,0x04,0x02,0x00
345 # VI: v_interp_p1_f32_e64 v5, v2, attr1.x    ; encoding: [0x05,0x00,0x70,0xd2,0x01,0x04,0x02,0x00]
346 0x05,0x00,0x70,0xd2,0x01,0x04,0x02,0x00
348 # VI: v_interp_p1_f32_e64 v5, -v2, attr0.x    ; encoding: [0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x40]
349 0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x40
351 # VI: v_interp_p1_f32_e64 v5, |v2|, attr0.x    ; encoding: [0x05,0x02,0x70,0xd2,0x00,0x04,0x02,0x00]
352 0x05,0x02,0x70,0xd2,0x00,0x04,0x02,0x00
354 # VI: v_interp_p1_f32_e64 v5, v2, attr0.z    ; encoding: [0x05,0x00,0x70,0xd2,0x80,0x04,0x02,0x00]
355 0x05,0x00,0x70,0xd2,0x80,0x04,0x02,0x00
357 # VI: v_interp_p1_f32_e64 v5, v2, attr0.x clamp    ; encoding: [0x05,0x80,0x70,0xd2,0x00,0x04,0x02,0x00]
358 0x05,0x80,0x70,0xd2,0x00,0x04,0x02,0x00
360 # VI: v_interp_p1_f32_e64 v5, v2, attr0.x mul:2    ; encoding: [0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x08]
361 0x05,0x00,0x70,0xd2,0x00,0x04,0x02,0x08
363 # VI: v_interp_p2_f32_e64 v5, v2, attr0.x    ; encoding: [0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x00]
364 0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x00
366 # VI: v_interp_p2_f32_e64 v5, v2, attr31.x    ; encoding: [0x05,0x00,0x71,0xd2,0x1f,0x04,0x02,0x00]
367 0x05,0x00,0x71,0xd2,0x1f,0x04,0x02,0x00
369 # VI: v_interp_p2_f32_e64 v5, -v2, attr0.x    ; encoding: [0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x40]
370 0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x40
372 # VI: v_interp_p2_f32_e64 v5, |v2|, attr0.x    ; encoding: [0x05,0x02,0x71,0xd2,0x00,0x04,0x02,0x00]
373 0x05,0x02,0x71,0xd2,0x00,0x04,0x02,0x00
375 # VI: v_interp_p2_f32_e64 v5, v2, attr0.y    ; encoding: [0x05,0x00,0x71,0xd2,0x40,0x04,0x02,0x00]
376 0x05,0x00,0x71,0xd2,0x40,0x04,0x02,0x00
378 # VI: v_interp_p2_f32_e64 v5, v2, attr0.x clamp    ; encoding: [0x05,0x80,0x71,0xd2,0x00,0x04,0x02,0x00]
379 0x05,0x80,0x71,0xd2,0x00,0x04,0x02,0x00
381 # VI: v_interp_p2_f32_e64 v5, v2, attr0.x mul:4    ; encoding: [0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x10]
382 0x05,0x00,0x71,0xd2,0x00,0x04,0x02,0x10
384 # VI: v_interp_p1ll_f16 v5, v2, attr0.x    ; encoding: [0x05,0x00,0x74,0xd2,0x00,0x04,0x02,0x00]
385 0x05,0x00,0x74,0xd2,0x00,0x04,0x02,0x00
387 # VI: v_interp_p1ll_f16 v5, v2, attr1.x    ; encoding: [0x05,0x00,0x74,0xd2,0x01,0x04,0x02,0x00]
388 0x05,0x00,0x74,0xd2,0x01,0x04,0x02,0x00
390 # VI: v_interp_p1ll_f16 v5, -v2, attr0.x    ; encoding: [0x05,0x00,0x74,0xd2,0x00,0x04,0x02,0x40]
391 0x05,0x00,0x74,0xd2,0x00,0x04,0x02,0x40
393 # VI: v_interp_p1ll_f16 v5, |v2|, attr0.x    ; encoding: [0x05,0x02,0x74,0xd2,0x00,0x04,0x02,0x00]
394 0x05,0x02,0x74,0xd2,0x00,0x04,0x02,0x00
396 # VI: v_interp_p1ll_f16 v5, v2, attr0.y    ; encoding: [0x05,0x00,0x74,0xd2,0x40,0x04,0x02,0x00]
397 0x05,0x00,0x74,0xd2,0x40,0x04,0x02,0x00
399 # VI: v_interp_p1ll_f16 v5, v2, attr0.x high    ; encoding: [0x05,0x00,0x74,0xd2,0x00,0x05,0x02,0x00]
400 0x05,0x00,0x74,0xd2,0x00,0x05,0x02,0x00
402 # VI: v_interp_p1ll_f16 v5, v2, attr0.x clamp    ; encoding: [0x05,0x80,0x74,0xd2,0x00,0x04,0x02,0x00]
403 0x05,0x80,0x74,0xd2,0x00,0x04,0x02,0x00
405 # VI: v_interp_p1ll_f16 v5, v2, attr0.x div:2    ; encoding: [0x05,0x00,0x74,0xd2,0x00,0x04,0x02,0x18]
406 0x05,0x00,0x74,0xd2,0x00,0x04,0x02,0x18
408 # VI: v_interp_p1lv_f16 v255, v2, attr0.x, v3    ; encoding: [0xff,0x00,0x75,0xd2,0x00,0x04,0x0e,0x04]
409 0xff,0x00,0x75,0xd2,0x00,0x04,0x0e,0x04
411 # VI: v_interp_p1lv_f16 v5, v2, attr32.x, v3    ; encoding: [0x05,0x00,0x75,0xd2,0x20,0x04,0x0e,0x04]
412 0x05,0x00,0x75,0xd2,0x20,0x04,0x0e,0x04
414 # VI: v_interp_p1lv_f16 v5, -v2, attr0.x, v3    ; encoding: [0x05,0x00,0x75,0xd2,0x00,0x04,0x0e,0x44]
415 0x05,0x00,0x75,0xd2,0x00,0x04,0x0e,0x44
417 # VI: v_interp_p1lv_f16 v5, v2, attr0.x, -v3    ; encoding: [0x05,0x00,0x75,0xd2,0x00,0x04,0x0e,0x84]
418 0x05,0x00,0x75,0xd2,0x00,0x04,0x0e,0x84
420 # VI: v_interp_p1lv_f16 v5, |v2|, attr0.x, v3    ; encoding: [0x05,0x02,0x75,0xd2,0x00,0x04,0x0e,0x04]
421 0x05,0x02,0x75,0xd2,0x00,0x04,0x0e,0x04
423 # VI: v_interp_p1lv_f16 v5, v2, attr0.x, |v3|    ; encoding: [0x05,0x04,0x75,0xd2,0x00,0x04,0x0e,0x04]
424 0x05,0x04,0x75,0xd2,0x00,0x04,0x0e,0x04
426 # VI: v_interp_p1lv_f16 v5, v2, attr0.x, v3 high    ; encoding: [0x05,0x00,0x75,0xd2,0x00,0x05,0x0e,0x04]
427 0x05,0x00,0x75,0xd2,0x00,0x05,0x0e,0x04
429 # VI: v_interp_p1lv_f16 v5, v2, attr0.x, v3 clamp    ; encoding: [0x05,0x80,0x75,0xd2,0x00,0x04,0x0e,0x04]
430 0x05,0x80,0x75,0xd2,0x00,0x04,0x0e,0x04
432 # VI: v_interp_p1lv_f16 v5, v2, attr0.x, v3 mul:4    ; encoding: [0x05,0x00,0x75,0xd2,0x00,0x04,0x0e,0x14]
433 0x05,0x00,0x75,0xd2,0x00,0x04,0x0e,0x14
435 # VI: v_interp_p2_f16 v5, v2, attr0.x, v3    ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x04]
436 0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x04
438 # VI: v_interp_p2_f16 v5, v2, attr1.x, v3    ; encoding: [0x05,0x00,0x76,0xd2,0x01,0x04,0x0e,0x04]
439 0x05,0x00,0x76,0xd2,0x01,0x04,0x0e,0x04
441 # VI: v_interp_p2_f16 v5, -v2, attr0.x, v3    ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x44]
442 0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x44
444 # VI: v_interp_p2_f16 v5, v2, attr0.x, -v3    ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x84]
445 0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x84
447 # VI: v_interp_p2_f16 v5, |v2|, attr0.x, v3    ; encoding: [0x05,0x02,0x76,0xd2,0x00,0x04,0x0e,0x04]
448 0x05,0x02,0x76,0xd2,0x00,0x04,0x0e,0x04
450 # VI: v_interp_p2_f16 v5, v2, attr0.x, |v3|    ; encoding: [0x05,0x04,0x76,0xd2,0x00,0x04,0x0e,0x04]
451 0x05,0x04,0x76,0xd2,0x00,0x04,0x0e,0x04
453 # VI: v_interp_p2_f16 v5, v2, attr0.x, v3 high    ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x05,0x0e,0x04]
454 0x05,0x00,0x76,0xd2,0x00,0x05,0x0e,0x04
456 # VI: v_interp_p2_f16 v5, v2, attr0.x, v3 clamp    ; encoding: [0x05,0x80,0x76,0xd2,0x00,0x04,0x0e,0x04]
457 0x05,0x80,0x76,0xd2,0x00,0x04,0x0e,0x04
459 # VI: v_mad_i32_i24 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xc2,0xd1,0x01,0x05,0x0e,0x04]
460 0x05,0x80,0xc2,0xd1,0x01,0x05,0x0e,0x04
462 # VI: v_mad_u32_u24 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xc3,0xd1,0x01,0x05,0x0e,0x04]
463 0x05,0x80,0xc3,0xd1,0x01,0x05,0x0e,0x04
465 # VI: v_sad_u8 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xd9,0xd1,0x01,0x05,0x0e,0x04]
466 0x05,0x80,0xd9,0xd1,0x01,0x05,0x0e,0x04
468 # VI: v_sad_hi_u8 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xda,0xd1,0x01,0x05,0x0e,0x04]
469 0x05,0x80,0xda,0xd1,0x01,0x05,0x0e,0x04
471 # VI: v_sad_u16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xdb,0xd1,0x01,0x05,0x0e,0x04]
472 0x05,0x80,0xdb,0xd1,0x01,0x05,0x0e,0x04
474 # VI: v_sad_u32 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xdc,0xd1,0x01,0x05,0x0e,0x04]
475 0x05,0x80,0xdc,0xd1,0x01,0x05,0x0e,0x04
477 # VI: v_msad_u8 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xe4,0xd1,0x01,0x05,0x0e,0x04]
478 0x05,0x80,0xe4,0xd1,0x01,0x05,0x0e,0x04
480 # VI: v_mqsad_pk_u16_u8 v[5:6], v[1:2], v2, v[3:4] clamp ; encoding: [0x05,0x80,0xe6,0xd1,0x01,0x05,0x0e,0x04]
481 0x05,0x80,0xe6,0xd1,0x01,0x05,0x0e,0x04
483 # VI: v_qsad_pk_u16_u8 v[5:6], v[1:2], v2, v[3:4] clamp ; encoding: [0x05,0x80,0xe5,0xd1,0x01,0x05,0x0e,0x04]
484 0x05,0x80,0xe5,0xd1,0x01,0x05,0x0e,0x04
486 # VI: v_mqsad_u32_u8 v[252:255], v[1:2], v2, v[3:6] clamp ; encoding: [0xfc,0x80,0xe7,0xd1,0x01,0x05,0x0e,0x04]
487 0xfc,0x80,0xe7,0xd1,0x01,0x05,0x0e,0x04
489 # VI: v_mad_u16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xeb,0xd1,0x01,0x05,0x0e,0x04]
490 0x05,0x80,0xeb,0xd1,0x01,0x05,0x0e,0x04
492 # VI: v_mad_i16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0xec,0xd1,0x01,0x05,0x0e,0x04]
493 0x05,0x80,0xec,0xd1,0x01,0x05,0x0e,0x04
495 # VI: v_add_u32_e64 v84, vcc, v13, s31 clamp ; encoding: [0x54,0xea,0x19,0xd1,0x0d,0x3f,0x00,0x00]
496 0x54,0xea,0x19,0xd1,0x0d,0x3f,0x00,0x00
498 # VI: v_sub_u32_e64 v84, s[2:3], v13, s31 clamp ; encoding: [0x54,0x82,0x1a,0xd1,0x0d,0x3f,0x00,0x00]
499 0x54,0x82,0x1a,0xd1,0x0d,0x3f,0x00,0x00
501 # VI: v_subrev_u32_e64 v84, vcc, v13, s31 clamp ; encoding: [0x54,0xea,0x1b,0xd1,0x0d,0x3f,0x00,0x00]
502 0x54,0xea,0x1b,0xd1,0x0d,0x3f,0x00,0x00
504 # VI: v_addc_u32_e64 v84, s[4:5], v13, v31, vcc clamp ; encoding: [0x54,0x84,0x1c,0xd1,0x0d,0x3f,0xaa,0x01]
505 0x54,0x84,0x1c,0xd1,0x0d,0x3f,0xaa,0x01
507 # VI: v_subb_u32_e64 v84, s[2:3], v13, v31, vcc clamp ; encoding: [0x54,0x82,0x1d,0xd1,0x0d,0x3f,0xaa,0x01]
508 0x54,0x82,0x1d,0xd1,0x0d,0x3f,0xaa,0x01
510 # VI: v_subbrev_u32_e64 v84, vcc, v13, v31, s[6:7] clamp ; encoding: [0x54,0xea,0x1e,0xd1,0x0d,0x3f,0x1a,0x00]
511 0x54,0xea,0x1e,0xd1,0x0d,0x3f,0x1a,0x00