Lines Matching refs:alu2
232 nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2, in nir_alu_srcs_equal() argument
235 if (alu1->src[src1].abs != alu2->src[src2].abs || in nir_alu_srcs_equal()
236 alu1->src[src1].negate != alu2->src[src2].negate) in nir_alu_srcs_equal()
240 if (alu1->src[src1].swizzle[i] != alu2->src[src2].swizzle[i]) in nir_alu_srcs_equal()
244 return nir_srcs_equal(alu1->src[src1].src, alu2->src[src2].src); in nir_alu_srcs_equal()
262 nir_alu_instr *alu2 = nir_instr_as_alu(instr2); in nir_instrs_equal() local
264 if (alu1->op != alu2->op) in nir_instrs_equal()
270 if (alu1->dest.dest.ssa.num_components != alu2->dest.dest.ssa.num_components) in nir_instrs_equal()
273 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size) in nir_instrs_equal()
280 return (nir_alu_srcs_equal(alu1, alu2, 0, 0) && in nir_instrs_equal()
281 nir_alu_srcs_equal(alu1, alu2, 1, 1)) || in nir_instrs_equal()
282 (nir_alu_srcs_equal(alu1, alu2, 0, 1) && in nir_instrs_equal()
283 nir_alu_srcs_equal(alu1, alu2, 1, 0)); in nir_instrs_equal()
286 if (!nir_alu_srcs_equal(alu1, alu2, i, i)) in nir_instrs_equal()