From 289c5941873848980488a15d04dd86ecf4322569 Mon Sep 17 00:00:00 2001 From: Malcolm Jestadt Date: Wed, 3 Jun 2020 18:38:07 -0400 Subject: [PATCH] SPU LLVM: Fix theoretical issue with FCGT optimizations --- rpcs3/Emu/Cell/SPURecompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index a501e26d1e..980f0f25fd 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -7355,7 +7355,7 @@ public: { const u32 exponent = data._u32[i] & 0x7f800000u; - if (data._u32[i] > 0x7f7fffffu || !exponent) + if (data._u32[i] >= 0x7f7fffffu || !exponent) { // Postive or negative zero, Denormal (treated as zero), Negative constant, or Normalized number with exponent +127 // Cannot used signed integer compare safely @@ -7380,7 +7380,7 @@ public: { const u32 exponent = data._u32[i] & 0x7f800000u; - if (data._u32[i] > 0x7f7fffffu || !exponent) + if (data._u32[i] >= 0x7f7fffffu || !exponent) { // See above safe_int_compare = false;