mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 23:18:37 +00:00
Measured natively on an RDNA2 iGPU (gfx1036): v_cvt_pk_u8_f32 rounds to nearest even, clamps to [0, 255] and gives 0 for NaN. The RoundEven rule was right; NaN reached FClamp, which is undefined for a NaN operand, so it is now replaced by +0 first. cs_cvt_pk_u8.asm holds eight hardware words (four byte selects), checked by check.py and run_gpu_tests.py, and bit-for-bit on the CPU by tests/semantic/test_cvt_pk_u8.py. Contract-table row added. Fixes #358