mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-11 18:50:55 +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;
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue