SPU LLVM: Fix theoretical issue with FCGT optimizations
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user