From 5ffc73896f3a7b96d0053ee3ac302e05dbc4f5cc Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Mon, 15 Aug 2022 11:51:55 +0200 Subject: [PATCH] aco/assembler: Fix v_cmpx with SDWA. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to use the implicit destination. Fixes: baab6f18c91 ("aco: Optimize branching sequence during SSA elimination.") Signed-off-by: Georg Lehmann Reviewed-by: Timur Kristóf Part-of: --- src/amd/compiler/aco_assembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index 4a98991312f..cf406f92d0c 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -720,7 +720,7 @@ emit_instruction(asm_context& ctx, std::vector& out, Instruction* inst uint32_t encoding = 0; if (instr->isVOPC()) { - if (instr->definitions[0].physReg() != vcc) { + if (instr->definitions[0].physReg() != vcc && instr->definitions[0].physReg() != exec) { encoding |= instr->definitions[0].physReg() << 8; encoding |= 1 << 15; }