Two cases over the sfold fixtures, each binding both float zeros, a quiet
NaN with a sign and a payload (0xffc12345), a signalling NaN (0x7f800321)
and a signalling half NaN (0xfd21) as function constants. Their outputs
are compared exactly.
What the M3's Metal answers: a fast-math product of a run value by a
zero is +0, half included. A NaN constant beside a run value, without
fast math or in a fused multiply-add, comes out unchanged, signalling
NaNs included. When every operand is a constant, the result is the first
NaN in operand order, quieted.
Verified on m3-max (job m3-max-12861, tip f5ca0e7347):
- sfold_fast b315adcc... qualified on apple-m3-max-macos27.0.1 (output
2869705760...). It matches on apple-m3-max-moltenvk with the folds,
and mismatches with the base translator (d21208a18d, environment kept
out of the corpus).
- sfold_precise ef24dc06... qualified (output dd4385291b...). It matches
with the folds and mismatches with the base translator.
Only the cases, the Metal observations and the apple-m3-max-moltenvk
rows are committed. The base translator's rows were a negative control.
(cherry picked from commit 51355ec9ec71afe81a28721fc43f9848bc23c937)