Lines Matching refs:a

29 a = 'a'  variable
66 (('imul', a, '#b@32(is_pos_power_of_two)'), ('ishl', a, ('find_lsb', b))),
67 (('imul', a, '#b@32(is_neg_power_of_two)'), ('ineg', ('ishl', a, ('find_lsb', ('iabs', b))))),
68 (('udiv', a, 1), a),
69 (('idiv', a, 1), a),
70 (('umod', a, 1), 0),
71 (('imod', a, 1), 0),
72 (('udiv', a, '#b@32(is_pos_power_of_two)'), ('ushr', a, ('find_lsb', b))),
73 …(('idiv', a, '#b@32(is_pos_power_of_two)'), ('imul', ('isign', a), ('ushr', ('iabs', a), ('find_ls…
74 …(('idiv', a, '#b@32(is_neg_power_of_two)'), ('ineg', ('imul', ('isign', a), ('ushr', ('iabs', a), …
75 (('umod', a, '#b(is_pos_power_of_two)'), ('iand', a, ('isub', b, 1))),
77 (('fneg', ('fneg', a)), a),
78 (('ineg', ('ineg', a)), a),
79 (('fabs', ('fabs', a)), ('fabs', a)),
80 (('fabs', ('fneg', a)), ('fabs', a)),
81 (('fabs', ('u2f32', a)), ('u2f32', a)),
82 (('iabs', ('iabs', a)), ('iabs', a)),
83 (('iabs', ('ineg', a)), ('iabs', a)),
84 (('~fadd', a, 0.0), a),
85 (('iadd', a, 0), a),
86 (('usadd_4x8', a, 0), a),
87 (('usadd_4x8', a, ~0), ~0),
88 (('~fadd', ('fmul', a, b), ('fmul', a, c)), ('fmul', a, ('fadd', b, c))),
89 (('iadd', ('imul', a, b), ('imul', a, c)), ('imul', a, ('iadd', b, c))),
90 (('~fadd', ('fneg', a), a), 0.0),
91 (('iadd', ('ineg', a), a), 0),
92 (('iadd', ('ineg', a), ('iadd', a, b)), b),
93 (('iadd', a, ('iadd', ('ineg', a), b)), b),
94 (('~fadd', ('fneg', a), ('fadd', a, b)), b),
95 (('~fadd', a, ('fadd', ('fneg', a), b)), b),
96 (('~fmul', a, 0.0), 0.0),
97 (('imul', a, 0), 0),
98 (('umul_unorm_4x8', a, 0), 0),
99 (('umul_unorm_4x8', a, ~0), a),
100 (('fmul', a, 1.0), a),
101 (('imul', a, 1), a),
102 (('fmul', a, -1.0), ('fneg', a)),
103 (('imul', a, -1), ('ineg', a)),
104 (('~ffma', 0.0, a, b), b),
105 (('~ffma', a, 0.0, b), b),
106 (('~ffma', a, b, 0.0), ('fmul', a, b)),
107 (('ffma', a, 1.0, b), ('fadd', a, b)),
108 (('ffma', 1.0, a, b), ('fadd', a, b)),
109 (('~flrp', a, b, 0.0), a),
110 (('~flrp', a, b, 1.0), b),
111 (('~flrp', a, a, b), a),
112 (('~flrp', 0.0, a, b), ('fmul', a, b)),
113 (('~flrp', a, b, ('b2f', c)), ('bcsel', c, b, a), 'options->lower_flrp32'),
114 (('~flrp', a, 0.0, c), ('fadd', ('fmul', ('fneg', a), c), a)),
115 (('flrp@32', a, b, c), ('fadd', ('fmul', c, ('fsub', b, a)), a), 'options->lower_flrp32'),
116 (('flrp@64', a, b, c), ('fadd', ('fmul', c, ('fsub', b, a)), a), 'options->lower_flrp64'),
117 (('ffract', a), ('fsub', a, ('ffloor', a)), 'options->lower_ffract'),
118 …(('~fadd', ('fmul', a, ('fadd', 1.0, ('fneg', ('b2f', c)))), ('fmul', b, ('b2f', c))), ('bcsel', c…
119 …(('~fadd@32', ('fmul', a, ('fadd', 1.0, ('fneg', c ))), ('fmul', b, c )), ('flrp',…
120 …(('~fadd@64', ('fmul', a, ('fadd', 1.0, ('fneg', c ))), ('fmul', b, c )), ('flrp',…
121 …(('~fadd', a, ('fmul', ('b2f', c), ('fadd', b, ('fneg', a)))), ('bcsel', c, b, a), 'options->lower…
122 …(('~fadd@32', a, ('fmul', c , ('fadd', b, ('fneg', a)))), ('flrp', a, b, c), '!options->lo…
123 …(('~fadd@64', a, ('fmul', c , ('fadd', b, ('fneg', a)))), ('flrp', a, b, c), '!options->lo…
124 (('ffma', a, b, c), ('fadd', ('fmul', a, b), c), 'options->lower_ffma'),
125 (('~fadd', ('fmul', a, b), c), ('ffma', a, b, c), 'options->fuse_ffma'),
130 (('ishl', ('iadd', ('imul', a, '#b'), '#c'), '#d'),
131 ('iadd', ('imul', a, ('ishl', b, d)), ('ishl', c, d))),
135 (('ishl', ('imul', a, '#b'), '#c'), ('imul', a, ('ishl', b, c))),
138 (('~inot', ('flt', a, b)), ('fge', a, b)),
139 (('~inot', ('fge', a, b)), ('flt', a, b)),
140 (('~inot', ('feq', a, b)), ('fne', a, b)),
141 (('~inot', ('fne', a, b)), ('feq', a, b)),
142 (('inot', ('ilt', a, b)), ('ige', a, b)),
143 (('inot', ('ige', a, b)), ('ilt', a, b)),
144 (('inot', ('ieq', a, b)), ('ine', a, b)),
145 (('inot', ('ine', a, b)), ('ieq', a, b)),
151 (('fge', 0.0, ('b2f', a)), ('inot', a)),
153 (('fge', ('fneg', ('b2f', a)), 0.0), ('inot', a)),
159 (('flt', 0.0, ('fabs', a)), ('fne', a, 0.0)),
163 … (('flt(is_not_used_by_conditional)', ('fadd(is_used_once)', a, ('fneg', b)), 0.0), ('flt', a, b)),
165 (('fge', ('fneg', ('fabs', a)), 0.0), ('feq', a, 0.0)),
166 (('bcsel', ('flt', b, a), b, a), ('fmin', a, b)),
167 (('bcsel', ('flt', a, b), b, a), ('fmax', a, b)),
168 (('bcsel', ('inot', a), b, c), ('bcsel', a, c, b)),
169 (('bcsel', a, ('bcsel', a, b, c), d), ('bcsel', a, b, d)),
170 (('bcsel', a, True, 'b@bool'), ('ior', a, b)),
171 (('fmin', a, a), a),
172 (('fmax', a, a), a),
173 (('imin', a, a), a),
174 (('imax', a, a), a),
175 (('umin', a, a), a),
176 (('umax', a, a), a),
177 (('fmin', a, ('fneg', a)), ('fneg', ('fabs', a))),
178 (('imin', a, ('ineg', a)), ('ineg', ('iabs', a))),
179 (('fmin', a, ('fneg', ('fabs', a))), ('fneg', ('fabs', a))),
180 (('imin', a, ('ineg', ('iabs', a))), ('ineg', ('iabs', a))),
181 (('fmin', a, ('fabs', a)), a),
182 (('imin', a, ('iabs', a)), a),
183 (('fmax', a, ('fneg', ('fabs', a))), a),
184 (('imax', a, ('ineg', ('iabs', a))), a),
185 (('fmax', a, ('fabs', a)), ('fabs', a)),
186 (('imax', a, ('iabs', a)), ('iabs', a)),
187 (('fmax', a, ('fneg', a)), ('fabs', a)),
188 (('imax', a, ('ineg', a)), ('iabs', a)),
189 (('~fmin', ('fmax', a, 0.0), 1.0), ('fsat', a), '!options->lower_fsat'),
190 (('~fmax', ('fmin', a, 1.0), 0.0), ('fsat', a), '!options->lower_fsat'),
191 (('fsat', a), ('fmin', ('fmax', a, 0.0), 1.0), 'options->lower_fsat'),
192 (('fsat', ('fsat', a)), ('fsat', a)),
193 (('fmin', ('fmax', ('fmin', ('fmax', a, b), c), b), c), ('fmin', ('fmax', a, b), c)),
194 (('imin', ('imax', ('imin', ('imax', a, b), c), b), c), ('imin', ('imax', a, b), c)),
195 (('umin', ('umax', ('umin', ('umax', a, b), c), b), c), ('umin', ('umax', a, b), c)),
196 (('fmax', ('fsat', a), '#b@32(is_zero_to_one)'), ('fsat', ('fmax', a, b))),
197 (('fmin', ('fsat', a), '#b@32(is_zero_to_one)'), ('fsat', ('fmin', a, b))),
198 (('extract_u8', ('imin', ('imax', a, 0), 0xff), 0), ('imin', ('imax', a, 0), 0xff)),
199 (('~ior', ('flt', a, b), ('flt', a, c)), ('flt', a, ('fmax', b, c))),
200 (('~ior', ('flt', a, c), ('flt', b, c)), ('flt', ('fmin', a, b), c)),
201 (('~ior', ('fge', a, b), ('fge', a, c)), ('fge', a, ('fmin', b, c))),
202 (('~ior', ('fge', a, c), ('fge', b, c)), ('fge', ('fmax', a, b), c)),
203 (('fabs', ('slt', a, b)), ('slt', a, b)),
204 (('fabs', ('sge', a, b)), ('sge', a, b)),
205 (('fabs', ('seq', a, b)), ('seq', a, b)),
206 (('fabs', ('sne', a, b)), ('sne', a, b)),
207 (('slt', a, b), ('b2f', ('flt', a, b)), 'options->lower_scmp'),
208 (('sge', a, b), ('b2f', ('fge', a, b)), 'options->lower_scmp'),
209 (('seq', a, b), ('b2f', ('feq', a, b)), 'options->lower_scmp'),
210 (('sne', a, b), ('b2f', ('fne', a, b)), 'options->lower_scmp'),
211 (('fne', ('fneg', a), a), ('fne', a, 0.0)),
212 (('feq', ('fneg', a), a), ('feq', a, 0.0)),
214 (('imul', ('b2i', a), ('b2i', b)), ('b2i', ('iand', a, b))),
215 (('fmul', ('b2f', a), ('b2f', b)), ('b2f', ('iand', a, b))),
216 (('fsat', ('fadd', ('b2f', a), ('b2f', b))), ('b2f', ('ior', a, b))),
217 (('iand', 'a@bool', 1.0), ('b2f', a)),
219 (('ineg', ('b2i@32', a)), a),
220 (('flt', ('fneg', ('b2f', a)), 0), a), # Generated by TGSI KILL_IF.
221 (('flt', ('fsub', 0.0, ('b2f', a)), 0), a), # Generated by TGSI KILL_IF.
225 (('ilt', a, a), False),
226 (('ige', a, a), True),
227 (('ieq', a, a), True),
228 (('ine', a, a), False),
229 (('ult', a, a), False),
230 (('uge', a, a), True),
232 (('fand', a, 0.0), 0.0),
233 (('iand', a, a), a),
234 (('iand', a, ~0), a),
235 (('iand', a, 0), 0),
236 (('ior', a, a), a),
237 (('ior', a, 0), a),
238 (('ior', a, True), True),
239 (('fxor', a, a), 0.0),
240 (('ixor', a, a), 0),
241 (('ixor', a, 0), a),
242 (('inot', ('inot', a)), a),
244 (('iand', ('inot', a), ('inot', b)), ('inot', ('ior', a, b))),
245 (('ior', ('inot', a), ('inot', b)), ('inot', ('iand', a, b))),
247 (('ishl', 0, a), 0),
248 (('ishl', a, 0), a),
249 (('ishr', 0, a), 0),
250 (('ishr', a, 0), a),
251 (('ushr', 0, a), 0),
252 (('ushr', a, 0), a),
253 (('iand', 0xff, ('ushr@32', a, 24)), ('ushr', a, 24)),
254 (('iand', 0xffff, ('ushr@32', a, 16)), ('ushr', a, 16)),
256 (('~fexp2', ('flog2', a)), a), # 2^lg2(a) = a
257 (('~flog2', ('fexp2', a)), a), # lg2(2^a) = a
258 …(('fpow', a, b), ('fexp2', ('fmul', ('flog2', a), b)), 'options->lower_fpow'), # a^b = 2^(lg2(a)*b)
259 …(('~fexp2', ('fmul', ('flog2', a), b)), ('fpow', a, b), '!options->lower_fpow'), # 2^(lg2(a)*b) = …
260 (('~fexp2', ('fadd', ('fmul', ('flog2', a), b), ('fmul', ('flog2', c), d))),
261 …('~fmul', ('fpow', a, b), ('fpow', c, d)), '!options->lower_fpow'), # 2^(lg2(a) * b + lg2(c) + d) …
262 (('~fpow', a, 1.0), a),
263 (('~fpow', a, 2.0), ('fmul', a, a)),
264 (('~fpow', a, 4.0), ('fmul', ('fmul', a, a), ('fmul', a, a))),
265 (('~fpow', 2.0, a), ('fexp2', a)),
266 (('~fpow', ('fpow', a, 2.2), 0.454545), a),
267 (('~fpow', ('fabs', ('fpow', a, 2.2)), 0.454545), ('fabs', a)),
268 (('~fsqrt', ('fexp2', a)), ('fexp2', ('fmul', 0.5, a))),
269 (('~frcp', ('fexp2', a)), ('fexp2', ('fneg', a))),
270 (('~frsq', ('fexp2', a)), ('fexp2', ('fmul', -0.5, a))),
271 (('~flog2', ('fsqrt', a)), ('fmul', 0.5, ('flog2', a))),
272 (('~flog2', ('frcp', a)), ('fneg', ('flog2', a))),
273 (('~flog2', ('frsq', a)), ('fmul', -0.5, ('flog2', a))),
274 (('~flog2', ('fpow', a, b)), ('fmul', b, ('flog2', a))),
275 (('~fmul', ('fexp2', a), ('fexp2', b)), ('fexp2', ('fadd', a, b))),
277 (('~fdiv', 1.0, a), ('frcp', a)),
278 (('fdiv', a, b), ('fmul', a, ('frcp', b)), 'options->lower_fdiv'),
279 (('~frcp', ('frcp', a)), a),
280 (('~frcp', ('fsqrt', a)), ('frsq', a)),
281 (('fsqrt', a), ('frcp', ('frsq', a)), 'options->lower_fsqrt'),
282 (('~frcp', ('frsq', a)), ('fsqrt', a), '!options->lower_fsqrt'),
284 (('ieq', 'a@bool', True), a),
285 (('ine(is_not_used_by_if)', 'a@bool', True), ('inot', a)),
286 (('ine', 'a@bool', False), a),
288 (('bcsel', a, True, False), a),
289 (('bcsel', a, False, True), ('inot', a)),
290 (('bcsel@32', a, 1.0, 0.0), ('b2f', a)),
291 (('bcsel@32', a, 0.0, 1.0), ('b2f', ('inot', a))),
292 (('bcsel@32', a, -1.0, -0.0), ('fneg', ('b2f', a))),
293 (('bcsel@32', a, -0.0, -1.0), ('fneg', ('b2f', ('inot', a)))),
300 (('bcsel', a, b, b), b),
301 (('fcsel', a, b, b), b),
304 (('i2b', ('b2i', a)), a),
305 (('f2i32', ('ftrunc', a)), ('f2i32', a)),
306 (('f2u32', ('ftrunc', a)), ('f2u32', a)),
307 (('i2b', ('ineg', a)), ('i2b', a)),
308 (('i2b', ('iabs', a)), ('i2b', a)),
309 (('fabs', ('b2f', a)), ('b2f', a)),
310 (('iabs', ('b2i', a)), ('b2i', a)),
313 (('unpack_64_2x32_split_x', ('pack_64_2x32_split', a, b)), a),
314 (('unpack_64_2x32_split_y', ('pack_64_2x32_split', a, b)), b),
315 (('pack_64_2x32_split', ('unpack_64_2x32_split_x', a),
316 ('unpack_64_2x32_split_y', a)), a),
319 (('ushr', a, 24), ('extract_u8', a, 3), '!options->lower_extract_byte'),
320 (('iand', 0xff, ('ushr', a, 16)), ('extract_u8', a, 2), '!options->lower_extract_byte'),
321 (('iand', 0xff, ('ushr', a, 8)), ('extract_u8', a, 1), '!options->lower_extract_byte'),
322 (('iand', 0xff, a), ('extract_u8', a, 0), '!options->lower_extract_byte'),
325 (('ushr', a, 16), ('extract_u16', a, 1), '!options->lower_extract_word'),
326 (('iand', 0xffff, a), ('extract_u16', a, 0), '!options->lower_extract_word'),
329 (('~fsub', a, ('fsub', 0.0, b)), ('fadd', a, b)),
330 (('isub', a, ('isub', 0, b)), ('iadd', a, b)),
331 (('ussub_4x8', a, 0), a),
332 (('ussub_4x8', a, ~0), 0),
333 (('fsub', a, b), ('fadd', a, ('fneg', b)), 'options->lower_sub'),
334 (('isub', a, b), ('iadd', a, ('ineg', b)), 'options->lower_sub'),
335 (('fneg', a), ('fsub', 0.0, a), 'options->lower_negate'),
336 (('ineg', a), ('isub', 0, a), 'options->lower_negate'),
337 (('~fadd', a, ('fsub', 0.0, b)), ('fsub', a, b)),
338 (('iadd', a, ('isub', 0, b)), ('isub', a, b)),
339 (('fabs', ('fsub', 0.0, a)), ('fabs', a)),
340 (('iabs', ('isub', 0, a)), ('iabs', a)),
343 (('fmul', ('fneg', a), b), ('fneg', ('fmul', a, b))),
344 (('imul', ('ineg', a), b), ('ineg', ('imul', a, b))),
347 … ('fmul(is_used_once)', 'a(is_not_const)', 'b(is_not_const)'), '#c'), ('fmul', ('fmul', a, c), b)),
348 … ('imul(is_used_once)', 'a(is_not_const)', 'b(is_not_const)'), '#c'), ('imul', ('imul', a, c), b)),
349 … ('fadd(is_used_once)', 'a(is_not_const)', 'b(is_not_const)'), '#c'), ('fadd', ('fadd', a, c), b)),
350 … ('iadd(is_used_once)', 'a(is_not_const)', 'b(is_not_const)'), '#c'), ('iadd', ('iadd', a, c), b)),
355 (('~fmul', '#a', ('fmul', b, '#c')), ('fmul', ('fmul', a, c), b)),
356 (('imul', '#a', ('imul', b, '#c')), ('imul', ('imul', a, c), b)),
357 (('~fadd', '#a', ('fadd', b, '#c')), ('fadd', ('fadd', a, c), b)),
358 (('iadd', '#a', ('iadd', b, '#c')), ('iadd', ('iadd', a, c), b)),
361 (('bcsel', ('ige', ('find_lsb', a), 0), ('find_lsb', a), -1), ('find_lsb', a)),
362 (('bcsel', ('ige', ('ifind_msb', a), 0), ('ifind_msb', a), -1), ('ifind_msb', a)),
363 (('bcsel', ('ige', ('ufind_msb', a), 0), ('ufind_msb', a), -1), ('ufind_msb', a)),
365 (('bcsel', ('ine', a, 0), ('find_lsb', a), -1), ('find_lsb', a)),
366 (('bcsel', ('ine', a, 0), ('ifind_msb', a), -1), ('ifind_msb', a)),
367 (('bcsel', ('ine', a, 0), ('ufind_msb', a), -1), ('ufind_msb', a)),
369 (('bcsel', ('ine', a, -1), ('ifind_msb', a), -1), ('ifind_msb', a)),
372 …(('fmod@32', a, b), ('fsub', a, ('fmul', b, ('ffloor', ('fdiv', a, b)))), 'options->lower_fmod32'),
373 …(('fmod@64', a, b), ('fsub', a, ('fmul', b, ('ffloor', ('fdiv', a, b)))), 'options->lower_fmod64'),
374 (('frem', a, b), ('fsub', a, ('fmul', b, ('ftrunc', ('fdiv', a, b)))), 'options->lower_fmod32'),
375 (('uadd_carry@32', a, b), ('b2i', ('ult', ('iadd', a, b), a)), 'options->lower_uadd_carry'),
376 (('usub_borrow@32', a, b), ('b2i', ('ult', a, b)), 'options->lower_usub_borrow'),
393 (('extract_i8', a, 'b@32'),
394 ('ishr', ('ishl', a, ('imul', ('isub', 3, b), 8)), 24),
397 (('extract_u8', a, 'b@32'),
398 ('iand', ('ushr', a, ('imul', b, 8)), 0xff),
401 (('extract_i16', a, 'b@32'),
402 ('ishr', ('ishl', a, ('imul', ('isub', 1, b), 16)), 16),
405 (('extract_u16', a, 'b@32'),
406 ('iand', ('ushr', a, ('imul', b, 16)), 0xffff),
519 (('iand', ('feq', a, a), (op, a, b)), (op, a, b)),
520 (('iand', ('feq', a, a), (op, b, a)), (op, b, a)),
540 ((op, '#d', ('bcsel', a, '#b', '#c')),
550 … ('fmul(is_used_once)', 'a(is_not_const)', '#b'), 'c(is_not_const)'), ('fmul', ('fmul', a, c), b)),
551 … ('imul(is_used_once)', 'a(is_not_const)', '#b'), 'c(is_not_const)'), ('imul', ('imul', a, c), b)),
552 … ('fadd(is_used_once)', 'a(is_not_const)', '#b'), 'c(is_not_const)'), ('fadd', ('fadd', a, c), b)),
553 … ('iadd(is_used_once)', 'a(is_not_const)', '#b'), 'c(is_not_const)'), ('iadd', ('iadd', a, c), b)),
555 (('~fadd', ('fmul', a, b), ('fmul', a, c)), ('fmul', a, ('fadd', b, c))),
556 (('iadd', ('imul', a, b), ('imul', a, c)), ('imul', a, ('iadd', b, c))),
557 (('~fadd', ('fneg', a), a), 0.0),
558 (('iadd', ('ineg', a), a), 0),
559 (('iadd', ('ineg', a), ('iadd', a, b)), b),
560 (('iadd', a, ('iadd', ('ineg', a), b)), b),
561 (('~fadd', ('fneg', a), ('fadd', a, b)), b),
562 (('~fadd', a, ('fadd', ('fneg', a), b)), b),
572 (('flt', ('fadd', a, b), 0.0), ('flt', a, ('fneg', b))),
573 (('~fge', ('fadd', a, b), 0.0), ('fge', a, ('fneg', b))),
574 (('~feq', ('fadd', a, b), 0.0), ('feq', a, ('fneg', b))),
575 (('~fne', ('fadd', a, b), 0.0), ('fne', a, ('fneg', b))),
577 (('fdot2', a, b), ('fdot_replicated2', a, b), 'options->fdot_replicates'),
578 (('fdot3', a, b), ('fdot_replicated3', a, b), 'options->fdot_replicates'),
579 (('fdot4', a, b), ('fdot_replicated4', a, b), 'options->fdot_replicates'),
580 (('fdph', a, b), ('fdph_replicated', a, b), 'options->fdot_replicates'),
582 (('b2f(is_used_more_than_once)', ('inot', a)), ('bcsel', a, 0.0, 1.0)),
583 (('fneg(is_used_more_than_once)', ('b2f', ('inot', a))), ('bcsel', a, -0.0, -1.0)),
586 …(('fmin', ('fadd(is_used_once)', '#c', a), ('fadd(is_used_once)', '#c', b)), ('fadd', c, ('fmin',
587 …(('fmax', ('fadd(is_used_once)', '#c', a), ('fadd(is_used_once)', '#c', b)), ('fadd', c, ('fmax',