Lines Matching refs:sgpr
274 if (val.type() == RegType::sgpr) in as_vgpr()
363 assert(dst_rc.type() == RegType::vgpr && it->second[idx].type() == RegType::sgpr); in emit_extract_vector()
390 if (vec_src.type() == RegType::sgpr) { in emit_split_vector()
421 if (dst.type() == RegType::sgpr && num_components > dst.size()) { in expand_vector()
435 if (dst.type() == RegType::sgpr) in expand_vector()
459 if (dst.type() == RegType::sgpr) in expand_vector()
582 vec = bld.pseudo(aco_opcode::p_as_uniform, bld.def(RegClass(RegType::sgpr, vec.size())), vec); in byte_align_vector()
649 if (dst_bits % 32 == 0 || src.type() == RegType::sgpr) in convert_int()
655 assert(src.type() == RegType::sgpr || src_bits == src.bytes() * 8); in convert_int()
656 assert(dst.type() == RegType::sgpr || dst_bits == dst.bytes() * 8); in convert_int()
752 if (elem_size < 4 && vec.type() == RegType::sgpr && size == 1) { in get_alu_src()
758 bool as_uniform = elem_size < 4 && vec.type() == RegType::sgpr; in get_alu_src()
779 return vec.type() == RegType::sgpr ? Builder(ctx->program, ctx->block).as_uniform(dst) : dst; in get_alu_src()
877 if (src1.type() == RegType::sgpr) { in emit_vop2_instruction()
921 if (src1.type() == RegType::sgpr) { in emit_vop2_instruction_logic64()
949 has_sgpr = src[i].type() == RegType::sgpr; in emit_vop3a_instruction()
977 if (src0.type() == RegType::sgpr && src1.type() == RegType::sgpr) in emit_vop3p_instruction()
1003 has_sgpr = src[i].type() == RegType::sgpr; in emit_idot_instruction()
1016 if (dst.type() == RegType::sgpr) in emit_vop1_instruction()
1031 if (src1.type() == RegType::sgpr) { in emit_vopc_instruction()
1075 assert(src0.type() == RegType::sgpr); in emit_sopc_instruction()
1076 assert(src1.type() == RegType::sgpr); in emit_sopc_instruction()
1260 if (val.type() == RegType::sgpr) in emit_trunc_f64()
1402 if (elems[i].type() == RegType::sgpr && elem_rc.is_subdword()) in visit_alu_instr()
1480 if (src.type() == RegType::vgpr && dst.type() == RegType::sgpr) { in visit_alu_instr()
1500 } else if (dst.type() == RegType::sgpr) { in visit_alu_instr()
1913 if (src1.type() == RegType::sgpr) in visit_alu_instr()
2067 else if (src1.type() == RegType::sgpr) in visit_alu_instr()
2156 if (src1.type() == RegType::sgpr) { in visit_alu_instr()
3083 (dst.type() == RegType::sgpr) ? Temp() : dst); in visit_alu_instr()
3084 if (dst.type() == RegType::sgpr) { in visit_alu_instr()
3106 (dst.type() == RegType::sgpr) ? Temp() : dst); in visit_alu_instr()
3107 if (dst.type() == RegType::sgpr) { in visit_alu_instr()
3190 } else if (instr->src[0].src.ssa->bit_size <= 32 && dst.type() == RegType::sgpr) { in visit_alu_instr()
3240 if (dst.type() == RegType::sgpr) { in visit_alu_instr()
3284 } else if (instr->src[0].src.ssa->bit_size <= 32 && dst.type() == RegType::sgpr) { in visit_alu_instr()
3330 if (dst.type() == RegType::sgpr) { in visit_alu_instr()
3393 if (dst.type() == RegType::sgpr && instr->src[0].src.ssa->bit_size < 32) { in visit_alu_instr()
3411 if (dst.type() == RegType::sgpr && instr->src[0].src.ssa->bit_size < 32) { in visit_alu_instr()
3682 if (dst.type() == RegType::sgpr) { in visit_alu_instr()
3934 assert(dst.type() == RegType::sgpr); in visit_load_const()
4154 if (val.type() == RegType::sgpr) in emit_load()
4182 RegType reg_type = RegType::sgpr; in emit_load()
4230 if (allocated_vec[j].bytes() % 4 == 0 && info.dst.type() == RegType::sgpr) in emit_load()
4249 if (info.dst.type() == RegType::sgpr && has_vgprs) { in emit_load()
4390 RegClass rc(RegType::sgpr, DIV_ROUND_UP(bytes_needed, 4u)); in smem_load_callback()
4407 Operand soffset = offset.type() == RegType::sgpr ? Operand(offset) : Operand::c32(0); in mubuf_load_callback()
4573 if (offset.type() != RegType::sgpr) { in lower_global_address()
4590 } else if (address.type() == RegType::sgpr && offset.id()) { in lower_global_address()
4593 if (address.type() == RegType::sgpr && !offset.id()) in lower_global_address()
4718 if (dst_type == RegType::sgpr) in split_store_data()
4758 if (is_subdword && src.type() == RegType::sgpr) in split_store_data()
4760 if (dst_type == RegType::sgpr) in split_store_data()
4778 if (dst_type == RegType::sgpr) in split_store_data()
4789 if (dst_type == RegType::sgpr) in split_store_data()
5804 if (offset.type() == RegType::sgpr && ctx->options->gfx_level < GFX8) in load_buffer()
5942 if (base && offset.type() == RegType::sgpr) in visit_load_constant()
6040 } else if (coord.type() == RegType::sgpr) { in emit_mimg()
6060 if (coord.type() == RegType::sgpr) in emit_mimg()
6722 if (offset.type() == RegType::sgpr && ctx->options->gfx_level < GFX8) in visit_store_ssbo()
6732 store->operands[2] = offset.type() == RegType::sgpr ? Operand(offset) : Operand::c32(0); in visit_store_ssbo()
6821 mubuf->operands[2] = offset.type() == RegType::sgpr ? Operand(offset) : Operand::c32(0); in visit_atomic_ssbo()
7278 bld.smem(opcode, bld.def(RegType::sgpr, size), base, offset), Operand::c32(0u)); in visit_load_smem()
7551 if (dst.type() == RegType::sgpr) { in visit_access_shared2_amd()
8007 if (op == nir_op_ixor && count.type() == RegType::sgpr) in emit_addition_uniform_reduce()
8143 defs[num_defs++] = bld.def(RegType::sgpr, dst.size()); in emit_reduction_instr()
8292 if (addr.type() == RegType::sgpr) { in visit_intrinsic()
9266 …assert(src.type() == (instr->intrinsic == nir_intrinsic_load_scalar_arg_amd ? RegType::sgpr : RegT… in visit_intrinsic()
9534 if (offset.type() == RegType::sgpr) { in visit_tex()
9668 if (tg4_integer_cube_workaround || dst.type() == RegType::sgpr) in visit_tex()
9673 dst.type() == RegType::sgpr) { in visit_tex()
10188 assert(dst.type() == RegType::sgpr); in visit_undef()
11589 RegClass type = RegClass(file == AC_ARG_SGPR ? RegType::sgpr : RegType::vgpr, size); in add_startpgm()
11597 ctx->arg_temps[i] = create_vec_from_array(ctx, elems, size, RegType::sgpr, 4); in add_startpgm()
12208 RegClass(file == AC_ARG_SGPR ? RegType::sgpr : RegType::vgpr, size)); in get_arg_fixed()