From 3c68c36fa0ba2ca4397cc5e3f11bfb149afc0dea Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 19 Mar 2026 03:06:19 +0300 Subject: [PATCH] rsx/cfg: Log a warning when encountering empty IF blocks with ELSE aliasing - Hardware tests confirm this is correct behavior, the condition just inverts --- rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp b/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp index 954954b377..c6d092c92a 100644 --- a/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp +++ b/rpcs3/Emu/RSX/Program/Assembler/FPToCFG.cpp @@ -218,6 +218,7 @@ namespace rsx::assembler // Empty IF block. We co-opt the ELSE block as the IF and invert the condition. auto& inst = parent->instructions.back(); FP::invert_conditional_execution_mask(&inst); + rsx_log.warning("CFG: Condition at L%u was inverted to cover empty IF block."); } else if (end_addr != else_addr) {