Lines Matching refs:vop2
164 return bld.vop2(aco_opcode::v_mbcnt_hi_u32_b32, Definition(dst), mask_hi, mbcnt_lo); in emit_mbcnt()
216 Operand index_x4 = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(2u), index); in emit_bpermute()
231 Temp index_x4 = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(2u), index); in emit_bpermute()
286 bld.vop2(aco_opcode::v_lshrrev_b32, Definition(dst), Operand::c32(util_logbase2(b)), a); in emit_v_div_u32()
307 bld.vop2(aco_opcode::v_lshrrev_b32, Definition(pre_shift_dst), Operand::c32(info.pre_shift), in emit_v_div_u32()
325 bld.vop2(aco_opcode::v_lshrrev_b32, Definition(dst), Operand::c32(info.post_shift), in emit_v_div_u32()
650 Temp high = bld.vop2(aco_opcode::v_ashrrev_i32, bld.def(v1), Operand::c32(31u), tmp); in convert_int()
855 Temp tmp = bld.vop2(opc, bld.def(v1), op[0], op[1]); in emit_vop2_instruction()
856 bld.vop2(aco_opcode::v_mul_f32, Definition(dst), Operand::c32(0x3f800000u), tmp); in emit_vop2_instruction()
859 bld.nuw().vop2(opc, Definition(dst), op[0], op[1]); in emit_vop2_instruction()
861 bld.vop2(opc, Definition(dst), op[0], op[1]); in emit_vop2_instruction()
886 Temp lo = bld.vop2(op, bld.def(v1), src00, src10); in emit_vop2_instruction_logic64()
887 Temp hi = bld.vop2(op, bld.def(v1), src01, src11); in emit_vop2_instruction_logic64()
915 bld.vop2(aco_opcode::v_mul_f32, Definition(dst), Operand::c32(0x3f800000u), tmp); in emit_vop3a_instruction()
1095 bld.vop2(aco_opcode::v_cndmask_b32, Definition(dst), els, then, cond); in emit_bcsel()
1102 Temp dst0 = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), else_lo, then_lo, cond); in emit_bcsel()
1103 Temp dst1 = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), else_hi, then_hi, cond); in emit_bcsel()
1155 Temp scaled = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(0x4b800000u), val); in emit_scaled_op()
1157 scaled = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(undo), scaled); in emit_scaled_op()
1161 bld.vop2(aco_opcode::v_cndmask_b32, dst, not_scaled, scaled, is_denormal); in emit_scaled_op()
1239 fract_lo = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), val_lo, tmp); in emit_trunc_f64()
1241 fract_hi = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), val_hi, tmp); in emit_trunc_f64()
1244 Temp sign = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x80000000u), val_hi); in emit_trunc_f64()
1249 Temp dst_lo = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), fract_lo, in emit_trunc_f64()
1251 Temp dst_hi = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), fract_hi, sign, exp_lt0); in emit_trunc_f64()
1253 dst_lo = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), dst_lo, val_lo, exp_gt51); in emit_trunc_f64()
1254 dst_hi = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), dst_hi, val_hi, exp_gt51); in emit_trunc_f64()
1283 Temp dst0 = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), else_lo, then_lo, isnan); in emit_floor_f64()
1284 Temp dst1 = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), else_hi, then_hi, isnan); in emit_floor_f64()
1449 bld.vop2(aco_opcode::v_max_i32, Definition(dst), src, in visit_alu_instr()
1479 Temp neg = bld.vop2(aco_opcode::v_ashrrev_i32, bld.def(v1), Operand::c32(31u), upper); in visit_alu_instr()
1482 Temp lower = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), Operand::c32(1u), neg, gtz); in visit_alu_instr()
1483 upper = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), Operand::zero(), neg, gtz); in visit_alu_instr()
1724 Temp msb_rev = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), lo, hi, found_hi); in visit_alu_instr()
1891 bld.vop2(aco_opcode::v_subrev_u16, Definition(dst), src1, as_vgpr(ctx, src0)); in visit_alu_instr()
1893 bld.vop2(aco_opcode::v_sub_u16, Definition(dst), src0, as_vgpr(ctx, src1)); in visit_alu_instr()
2158 sc = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), Operand::c32(0x3f000000u /*0.5*/), in visit_alu_instr()
2159 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), sc, ma)); in visit_alu_instr()
2160 tc = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), Operand::c32(0x3f000000u /*0.5*/), in visit_alu_instr()
2161 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), tc, ma)); in visit_alu_instr()
2200 bld.vop2(aco_opcode::v_mul_f16, Definition(dst), Operand::c16(0xbc00u), as_vgpr(ctx, src)); in visit_alu_instr()
2202 bld.vop2(aco_opcode::v_mul_f32, Definition(dst), Operand::c32(0xbf800000u), in visit_alu_instr()
2210 upper = bld.vop2(aco_opcode::v_xor_b32, bld.def(v1), Operand::c32(0x80000000u), upper); in visit_alu_instr()
2235 upper = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x7FFFFFFFu), upper); in visit_alu_instr()
2366 Temp add = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), in visit_alu_instr()
2446 Temp tmp = bld.vop2(aco_opcode::v_mul_f16, bld.def(v1), half_pi, src); in visit_alu_instr()
2452 Temp tmp = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), half_pi, src); in visit_alu_instr()
2510 src = bld.vop2(aco_opcode::v_add_f16, bld.def(v2b), Operand::zero(), src); in visit_alu_instr()
2515 src = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), Operand::zero(), src); in visit_alu_instr()
2529 upper = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), tmp, upper, cond); in visit_alu_instr()
2560 bld.vop2(aco_opcode::v_cvt_pkrtz_f16_f32, Definition(dst), src, as_vgpr(ctx, src)); in visit_alu_instr()
2826 Temp mantissa = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x7fffffu), src); in visit_alu_instr()
2827 Temp sign = bld.vop2(aco_opcode::v_ashrrev_i32, bld.def(v1), Operand::c32(31u), src); in visit_alu_instr()
2828 mantissa = bld.vop2(aco_opcode::v_or_b32, bld.def(v1), Operand::c32(0x800000u), mantissa); in visit_alu_instr()
2829 mantissa = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(7u), mantissa); in visit_alu_instr()
2843 upper = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), upper, saturate, borrow); in visit_alu_instr()
2844 lower = bld.vop2(aco_opcode::v_xor_b32, bld.def(v1), sign, lower); in visit_alu_instr()
2845 upper = bld.vop2(aco_opcode::v_xor_b32, bld.def(v1), sign, upper); in visit_alu_instr()
2921 exponent = bld.vop2(aco_opcode::v_max_i32, bld.def(v1), Operand::zero(), exponent); in visit_alu_instr()
2922 Temp mantissa = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x7fffffu), src); in visit_alu_instr()
2923 mantissa = bld.vop2(aco_opcode::v_or_b32, bld.def(v1), Operand::c32(0x800000u), mantissa); in visit_alu_instr()
2925 Temp small = bld.vop2(aco_opcode::v_lshrrev_b32, bld.def(v1), exponent_small, mantissa); in visit_alu_instr()
2936 lower = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), lower, small, cond_small); in visit_alu_instr()
2939 lower = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), Operand::c32(0xffffffffu), lower, in visit_alu_instr()
2941 upper = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), Operand::c32(0xffffffffu), upper, in visit_alu_instr()
3011 bld.vop2(aco_opcode::v_cndmask_b32, Definition(dst), Operand::zero(), one, src); in visit_alu_instr()
3278 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), Operand::zero(), as_vgpr(ctx, src)); in visit_alu_instr()
3279 bld.vop2(aco_opcode::v_cndmask_b32, Definition(dst), copysign_0, f32, cmp_res); in visit_alu_instr()
3281 bld.vop2(aco_opcode::v_cndmask_b32, Definition(dst), Operand::zero(), f32, cmp_res); in visit_alu_instr()
3574 tmp = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), tr, tl); in visit_alu_instr()
3770 bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0xfffffffcu), offset_tmp); in emit_load()
3774 lo = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0xfffffffcu), lo); in emit_load()
4837 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), frag_z, adjusted_frag_z, cond); in emit_load_frag_coord()
4865 x_rate = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), bld.copy(bld.def(v1), Operand::zero()), in emit_load_frag_shading_rate()
4870 y_rate = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), bld.copy(bld.def(v1), Operand::zero()), in emit_load_frag_shading_rate()
4873 bld.vop2(aco_opcode::v_or_b32, Definition(dst), Operand(x_rate), Operand(y_rate)); in emit_load_frag_shading_rate()
4992 alpha = bld.vop2(aco_opcode::v_max_f32, bld.def(v1), Operand::c32(0xbf800000u), alpha); in adjust_vertex_fetch_alpha()
5348 Temp tmp = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), tes_u, tes_v); in visit_load_tess_coord()
5349 tmp = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), Operand::c32(0x3f800000u /* 1.0f */), tmp); in visit_load_tess_coord()
6764 bld.vop2(aco_opcode::v_add_co_u32, Definition(new_addr0), in visit_store_global()
6766 bld.vop2(aco_opcode::v_addc_co_u32, Definition(new_addr1), bld.def(bld.lm), in visit_store_global()
7357 Temp mask = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), sample_id, in visit_load_sample_mask_in()
7359 bld.vop2(aco_opcode::v_and_b32, Definition(dst), mask, in visit_load_sample_mask_in()
7520 Temp cluster_offset = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), in emit_boolean_reduce()
7541 tmp = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(cluster_mask), tmp); in emit_boolean_reduce()
7549 tmp = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(1u), in emit_boolean_reduce()
7583 bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(1u), mbcnt)); in emit_boolean_exclusive_scan()
7665 bld.vop2(aco_opcode::v_mul_f16, Definition(tmp), count, src_tmp); in emit_addition_uniform_reduce()
7669 bld.vop2(aco_opcode::v_mul_f32, Definition(tmp), count, src_tmp); in emit_addition_uniform_reduce()
7685 count = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(1u), count); in emit_addition_uniform_reduce()
7705 bld.vop2(aco_opcode::v_mul_lo_u16, dst, src_tmp, count); in emit_addition_uniform_reduce()
7874 ddx_1 = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), ddx_1, tl_1); in emit_interp_center()
7876 ddx_2 = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), ddx_2, tl_1); in emit_interp_center()
7879 ddy_1 = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), ddy_1, tl_2); in emit_interp_center()
7881 ddy_2 = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), ddy_2, tl_2); in emit_interp_center()
7982 addr = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(3u), addr); in visit_intrinsic()
7996 addr = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(3u), addr); in visit_intrinsic()
8014 addr = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(3u), addr); in visit_intrinsic()
8211 bld.vop2(aco_opcode::v_or_b32, Definition(get_ssa_temp(ctx, &instr->dest.ssa)), tg_num, in visit_intrinsic()
8326 tmp = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(1u), tmp); in visit_intrinsic()
8889 bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x700u), gs_invocation_id); in visit_intrinsic()
8891 flags = bld.vop2(aco_opcode::v_mul_u32_u24, bld.def(v1), Operand::c32(0x80402u), flags); in visit_intrinsic()
8893 bld.vop2(aco_opcode::v_and_b32, Definition(get_ssa_temp(ctx, &instr->dest.ssa)), in visit_intrinsic()
9106 Temp neg_sgn_ma = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), Operand::zero(), sgn_ma); in build_cube_select()
9115 Temp tmp = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), deriv_z, deriv_x, is_not_ma_x); in build_cube_select()
9118 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), neg_sgn_ma, sgn_ma, is_ma_z), one, is_ma_y); in build_cube_select()
9119 *out_sc = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), tmp, sgn); in build_cube_select()
9122 tmp = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), deriv_y, deriv_z, is_ma_y); in build_cube_select()
9123 sgn = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), neg_one, sgn_ma, is_ma_y); in build_cube_select()
9124 *out_tc = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), tmp, sgn); in build_cube_select()
9127 tmp = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), in build_cube_select()
9128 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), deriv_x, deriv_y, is_ma_y), in build_cube_select()
9130 tmp = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x7fffffffu), tmp); in build_cube_select()
9131 *out_ma = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), two, tmp); in build_cube_select()
9150 coords[3] = bld.vop2(aco_opcode::v_max_f32, bld.def(v1), Operand::zero(), coords[3]); in prepare_cube_coords()
9165 sc = bld.vop2(madak, bld.def(v1), sc, invma, Operand::c32(0x3fc00000u /*1.5*/)); in prepare_cube_coords()
9169 tc = bld.vop2(madak, bld.def(v1), tc, invma, Operand::c32(0x3fc00000u /*1.5*/)); in prepare_cube_coords()
9174 sc = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), sc, invma); in prepare_cube_coords()
9175 tc = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), tc, invma); in prepare_cube_coords()
9183 deriv_ma = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), deriv_ma, invma); in prepare_cube_coords()
9185 Temp x = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), in prepare_cube_coords()
9186 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), deriv_sc, invma), in prepare_cube_coords()
9187 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), deriv_ma, sc)); in prepare_cube_coords()
9188 Temp y = bld.vop2(aco_opcode::v_sub_f32, bld.def(v1), in prepare_cube_coords()
9189 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), deriv_tc, invma), in prepare_cube_coords()
9190 bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), deriv_ma, tc)); in prepare_cube_coords()
9194 sc = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), Operand::c32(0x3fc00000u /*1.5*/), sc); in prepare_cube_coords()
9195 tc = bld.vop2(aco_opcode::v_add_f32, bld.def(v1), Operand::c32(0x3fc00000u /*1.5*/), tc); in prepare_cube_coords()
9199 id = bld.vop2(madmk, bld.def(v1), coords[3], id, Operand::c32(0x41000000u /*8.0*/)); in prepare_cube_coords()
9346 acc = bld.vop2(aco_opcode::v_and_b32, bld.def(v1), Operand::c32(0x3Fu), acc); in visit_tex()
9349 acc = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(8u * i), acc); in visit_tex()
9355 pack = bld.vop2(aco_opcode::v_or_b32, bld.def(v1), pack, acc); in visit_tex()
9487 half_texel[i] = bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), in visit_tex()
9504 half_texel[0] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), in visit_tex()
9506 half_texel[1] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), in visit_tex()
9510 Temp new_coords[2] = {bld.vop2(aco_opcode::v_add_f32, bld.def(v1), coords[0], half_texel[0]), in visit_tex()
9511 bld.vop2(aco_opcode::v_add_f32, bld.def(v1), coords[1], half_texel[1])}; in visit_tex()
9558 new_coords[0] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), new_coords[0], coords[0], in visit_tex()
9560 new_coords[1] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), new_coords[1], coords[1], in visit_tex()
9656 bld.vop2(aco_opcode::v_cndmask_b32, Definition(dst), in visit_tex()
9800 val[i] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), val[i], cvt_val, in visit_tex()
10699 Temp out = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(16u), in export_vs_psiz_layer_viewport_vrs()
10702 out = bld.vop2(aco_opcode::v_or_b32, bld.def(v1), Operand(out), exp->operands[2]); in export_vs_psiz_layer_viewport_vrs()
10730 rates = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), in export_vs_psiz_layer_viewport_vrs()
10827 values[0] = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(16u), values[0]); in export_fs_mrt_z()
10906 values[i] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), values[i], in export_fs_mrt_color()
10944 bld.vop2(aco_opcode::v_cvt_pkrtz_f16_f32, bld.def(v1), in export_fs_mrt_color()
10983 bld.vop2(aco_opcode::v_min_u32, bld.def(v1), in export_fs_mrt_color()
11010 bld.vop2(aco_opcode::v_min_i32, bld.def(v1), in export_fs_mrt_color()
11012 values[i] = bld.vop2(aco_opcode::v_max_i32, bld.def(v1), in export_fs_mrt_color()
11216 bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(2u), new_offset); in emit_streamout()
11294 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), get_arg(ctx, ctx->args->ac.vertex_id), in fix_ls_vgpr_init_bug()
11297 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), get_arg(ctx, ctx->args->ac.tcs_rel_ids), in fix_ls_vgpr_init_bug()
11300 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), get_arg(ctx, ctx->args->ac.tcs_patch_id), in fix_ls_vgpr_init_bug()
11350 bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), persp_centroid, persp_center, sel); in handle_bc_optimize()
11365 new_coord[i] = bld.vop2(aco_opcode::v_cndmask_b32, bld.def(v1), linear_centroid, in handle_bc_optimize()
11691 Temp vtx_offset = bld.vop2(aco_opcode::v_lshlrev_b32, bld.def(v1), Operand::c32(2u), in select_gs_copy_shader()
11891 bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id).instr; in calc_nontrivial_instance_id()
11912 bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id); in calc_nontrivial_instance_id()
11921 bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, tmp_op, fetch_index); in calc_nontrivial_instance_id()
12120 bld.vop2(aco_opcode::v_max_f32, Definition(alpha, v1), Operand::c32(0xbf800000u), in select_vs_prolog()