diff options
| author | hugo <63666848+hugo0024@users.noreply.github.com> | 2026-11-25 17:38:41 +0800 |
|---|---|---|
| committer | hugo <63666848+hugo0024@users.noreply.github.com> | 2026-11-28 12:44:48 +0800 |
| commit | 420116dbbcf78d75d8f0893c8cd8bcfbfb0bcdab (patch) | |
| tree | 4c6eca585f1983014b197fe8508f8bfefcf315c9 /runtime/src/xma2_decoder.cpp | |
| parent | ef8fbf09f3ba00460e1c08102b096b76702a70b6 (diff) | |
tests: cs_fma_fused takes its f16 operands at run time, like its f32 ones (TEST-FMA-FUSED-F16-RUNTIME)
The fixture reads the operands of its f32 multiply-adds from s4..s7 so that a driver has to
compute them at run time. The three operands of its v_fma_f16 were literals, which made the
whole f16 multiply-add a compile-time constant. MoltenVK 1.4.2 gives the wrong constant: word
7 read 0x0000 on an Apple M5 (0x3c00 in the docs' row) where 0x7351 is expected, the
cs_fma_fused failure listed in docs/testing.md and in the macOS job's EXPECTED_FAILURES. The
same translation with any one of the three operands taken at run time gives 0x7351.
The triple is now the s4 word XOR a literal each, so the test checks the translator's
round-to-odd sequence as the GPU runs it. The translator is not changed.
tests/semantic/test_fma_fused_fixture.py runs the fixture in the interpreter against the eight
words of its header and checks that no multiply-add in it reads a register only literals fed.
The Known problems row says what is left: an f16 multiply-add with only constant operands.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions