From 5535b3f5aba4b988518fc595fa1170c497ed76e8 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Mon, 16 Mar 2026 23:35:48 +0200 Subject: [PATCH] brackets --- src/shader_recompiler/frontend/translate/vector_alu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shader_recompiler/frontend/translate/vector_alu.cpp b/src/shader_recompiler/frontend/translate/vector_alu.cpp index 0d4156ee1..e819e09bc 100644 --- a/src/shader_recompiler/frontend/translate/vector_alu.cpp +++ b/src/shader_recompiler/frontend/translate/vector_alu.cpp @@ -1159,9 +1159,10 @@ void Translator::V_CMP_U64(ConditionOp op, bool is_signed, bool set_exec, const return ir.Imm64(static_cast(0)); case OperandField::SignedConstIntPos: return ir.Imm64(static_cast(inst.src[0].code)); - case OperandField::SignedConstIntNeg: + case OperandField::SignedConstIntNeg: { s32 decoded_value = -s32(inst.src[0].code) + SignedConstIntNegMin - 1; return ir.Imm64(static_cast(decoded_value)); + } default: UNREACHABLE_MSG("src0 = {}", u32(inst.src[0].field)); } @@ -1189,9 +1190,10 @@ void Translator::V_CMP_U64(ConditionOp op, bool is_signed, bool set_exec, const return ir.Imm64(static_cast(0)); case OperandField::SignedConstIntPos: return ir.Imm64(static_cast(inst.src[1].code)); - case OperandField::SignedConstIntNeg: + case OperandField::SignedConstIntNeg: { s32 decoded_value = -s32(inst.src[0].code) + SignedConstIntNegMin - 1; return ir.Imm64(static_cast(decoded_value)); + } default: UNREACHABLE_MSG("Unsupported src[1] operand field: {}", u32(inst.src[1].field)); }