mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
SPU LLVM: Fix theoretical issue with FCGT optimizations
This commit is contained in:
parent
d47d597b34
commit
289c594187
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue