test(agc): accept any NaN encoding in f16 FMA denormal modes #7109
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7109"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T12:01:44Z.
What
Fixes the NVIDIA failures in
agc_driver_f16_fma_denormal_modesandagc_driver_fma_mix_f16_denormal_modesreported in #7100. The expected tables record AMD's NaN encodings for invalid FMA operations (0xfe00for f16,0xffc00000for f32); NVIDIA returns different, equally valid NaN encodings (0x7fff,0x7fffffff). Both tests now follow the existingFloat16ResultModifiersidiom: exact bit equality when the expected value is not NaN, and any NaN encoding when it is.IsNan16/SameHalfcover the f16 test;IsNan32/SameFloatcover the f32-onlyv_fma_mix_f32forms. No recompiler changes: sign/payload of an invalid-operation NaN is device-defined, and the tests' non-NaN rows (including0x7c00infinity) still require exact bits.Tested
v_fma_f16 ... is 0x7fff, expected 0xfe00;v_fma_mix_f32 ... is 0x7fffffff, expected 0xffc00000) and pass with this change.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T12:16:58Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/execution/F16FmaDenormalModes.cppL214core/libs/prx/libSceAgcDriver/tests/execution/FmaMixF16DenormalModes.cppL177Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-17T12:22:54Z.
Duplicate of #7093, which opened ~30 min before #7100 was filed (same approach: accept any NaN where the expectation is NaN). Validated that head
e5b4b326cpasses both tests on an RTX 3070 — posted the datapoint there. Closing in favour of the earlier PR.Pull request closed