From 6ea85878262bcb47229ec651fc6ee3a6e61de167 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Mon, 16 Mar 2026 23:51:32 +0200 Subject: [PATCH] fixed typo --- src/shader_recompiler/frontend/translate/vector_alu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shader_recompiler/frontend/translate/vector_alu.cpp b/src/shader_recompiler/frontend/translate/vector_alu.cpp index e819e09bc..8d8f151c2 100644 --- a/src/shader_recompiler/frontend/translate/vector_alu.cpp +++ b/src/shader_recompiler/frontend/translate/vector_alu.cpp @@ -1150,7 +1150,6 @@ void Translator::V_CMP_U64(ConditionOp op, bool is_signed, bool set_exec, const } case OperandField::VccLo: { IR::U1 vcc_bit = ir.GetVcc(); - // Fix: Cast both Imm64 calls to avoid ambiguity IR::Value vcc_val = ir.Select(vcc_bit, ir.Imm64(static_cast(-1)), ir.Imm64(static_cast(0))); return IR::U64{vcc_val}; @@ -1191,7 +1190,7 @@ void Translator::V_CMP_U64(ConditionOp op, bool is_signed, bool set_exec, const case OperandField::SignedConstIntPos: return ir.Imm64(static_cast(inst.src[1].code)); case OperandField::SignedConstIntNeg: { - s32 decoded_value = -s32(inst.src[0].code) + SignedConstIntNegMin - 1; + s32 decoded_value = -s32(inst.src[1].code) + SignedConstIntNegMin - 1; return ir.Imm64(static_cast(decoded_value)); } default: