From 3907c54443dfc3c7b09cbea1efcae90a76b4c6b0 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Fri, 24 Mar 2023 13:35:07 +0100 Subject: [PATCH] aco: don't label mul with opsel as abs/neg Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_optimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 294651a..4abf14b 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -1840,7 +1840,7 @@ label_instruction(opt_ctx& ctx, aco_ptr& instr) for (unsigned i = 0; i < 2; i++) { if (instr->operands[!i].isConstant() && instr->operands[i].isTemp()) { - if (!instr->isDPP() && !instr->isSDWA() && + if (!instr->isDPP() && !instr->isSDWA() && !instr->valu().opsel && (instr->operands[!i].constantEquals(fp16 ? 0x3c00 : 0x3f800000) || /* 1.0 */ instr->operands[!i].constantEquals(fp16 ? 0xbc00 : 0xbf800000u))) { /* -1.0 */ bool neg1 = instr->operands[!i].constantEquals(fp16 ? 0xbc00 : 0xbf800000u); -- 2.7.4