mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-06 02:22:30 +00:00
206b733d3c
Only four packed compares (cmpeq/lt/le/neqps) were lifted. Everything else -- cmpltss above all -- fell to RECOMP_UNIMPL and left its destination unchanged. RenderWare's frustum build normalises each side plane as `cmpltss mask, len2; rsqrtss; andps mask`, so with the mask stuck at zero every side plane came out (0,0,0,0) and every sector box failed the frustum test: Burnout 3's race view drew the sky and nothing else, while its axis-aligned cube-map cameras (built elsewhere) drew the world. Found by tracing the empty per-group visibility flags back to the camera's planes. - All eight predicates, packed and scalar, named (cmpnless, ...) or by immediate (cmpps/cmpss), through recomp_cmp_pred / XMM_CMP_PRED. SSE compares no longer clear the tracked EFLAGS setter; they don't touch EFLAGS. - sqrtps/rsqrtps/rcpps compute all four lanes (were lane 0 only). - A bare cmpsb/w/d or scasb/w/d is one iteration of the rep form, ecx untouched, and sets the tracked flags. These were RECOMP_UNIMPL too; MSVC unrolls short memcmps into `cmpsd; jne` chains. The translator now declares _flags for any function with a string compare. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>