diff options
| author | tibzejoker <9730963+tibzejoker@users.noreply.github.com> | 2026-11-22 19:02:48 +0100 |
|---|---|---|
| committer | tibzejoker <9730963+tibzejoker@users.noreply.github.com> | 2026-11-22 19:02:48 +0100 |
| commit | 6d59992116dc25f74ba1fe1f7847031c19727633 (patch) | |
| tree | 3ca4029040494b34ccd6a7d1fc86abe7e2c2e1e8 /runtime/test/queue_proxy_test.cpp | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
Translator: smaller f16 narrowing, same bits (SHADER-489)
In nearest-even mode the overflow select already maps infinity to 0x7C00, so
the separate infinity select goes. An f16 add/sub without omod is exact below
2^-14, so that range needs no rounding and no underflow select.
v_add_f16 goes from 47 to 31 SPIR-V instructions after spirv-opt -O, and
v_pk_add_f16 from 90 to 58. Checked equal on all 2^32 f32 inputs and all 2^32
f16 operand pairs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TzVEfVrMSeDj68fhoKtKFN
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions