From: notaz Date: Sat, 12 Apr 2025 23:25:23 +0000 (+0300) Subject: gte_neon: fix broken ir0 saturation flag X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dee89e97ac6d9fb76c09a1438a6a8269153e307;p=pcsx_rearmed.git gte_neon: fix broken ir0 saturation flag a 14 year old bug... notaz/pcsx_rearmed#371 --- diff --git a/libpcsxcore/gte_neon.S b/libpcsxcore/gte_neon.S index 7d97ff37..356f27d6 100644 --- a/libpcsxcore/gte_neon.S +++ b/libpcsxcore/gte_neon.S @@ -272,7 +272,7 @@ FUNCTION(gteRTPS_neon): @ r0=CP2 (d,c), subs r2, r4, #1 orrvs lr, #(1<<15) @ F orrvs lr, #(1<<31) - cmp r4, #0x1000 + cmp r4, #0x1000<<12 orrhi lr, #(1<<12) @ limH str lr, [r0, #4*(32+31)] @ gteFLAG @@ -512,7 +512,7 @@ FUNCTION(gteRTPT_neon): @ r0=CP2 (d,c), subs r2, r4, #1 orrvs lr, #(1<<15) orrvs lr, #(1<<31) @ F - cmp r4, #0x1000 + cmp r4, #0x1000<<12 orrhi lr, #(1<<12) @ limH str lr, [r0, #4*(32+31)] @ gteFLAG