SPU LLVM: Fix theoretical issue with FCGT optimizations

This commit is contained in:
Malcolm Jestadt 2020-06-03 18:38:07 -04:00 committed by Ivan
commit 289c594187

View file

@ -7355,7 +7355,7 @@ public:
{ {
const u32 exponent = data._u32[i] & 0x7f800000u; 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 // Postive or negative zero, Denormal (treated as zero), Negative constant, or Normalized number with exponent +127
// Cannot used signed integer compare safely // Cannot used signed integer compare safely
@ -7380,7 +7380,7 @@ public:
{ {
const u32 exponent = data._u32[i] & 0x7f800000u; const u32 exponent = data._u32[i] & 0x7f800000u;
if (data._u32[i] > 0x7f7fffffu || !exponent) if (data._u32[i] >= 0x7f7fffffu || !exponent)
{ {
// See above // See above
safe_int_compare = false; safe_int_compare = false;