From: Rhys Perry Date: Tue, 14 Apr 2020 15:40:46 +0000 (+0100) Subject: aco: add missing scc clobber to nir_op_unpack_32_2x16_split_y X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=839c886b346e0f68707804e17e9088d2e166e6d6;p=mesa.git aco: add missing scc clobber to nir_op_unpack_32_2x16_split_y The ISA doc is inconsistent whether this instruction writes SCC. It does. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index d1b9f9238d7..8552b06bf89 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -2700,7 +2700,7 @@ void visit_alu_instr(isel_context *ctx, nir_alu_instr *instr) if (dst.type() == RegType::vgpr) { bld.pseudo(aco_opcode::p_split_vector, bld.def(dst.regClass()), Definition(dst), get_alu_src(ctx, instr->src[0])); } else { - bld.sop2(aco_opcode::s_bfe_u32, Definition(dst), get_alu_src(ctx, instr->src[0]), Operand(uint32_t(16 << 16 | 16))); + bld.sop2(aco_opcode::s_bfe_u32, Definition(dst), bld.def(s1, scc), get_alu_src(ctx, instr->src[0]), Operand(uint32_t(16 << 16 | 16))); } break; case nir_op_pack_32_2x16_split: {