Files
metal2vulkan/crates
Anees Iqbal 7d9aa2207f Tests: the half rounding test holds the rounding's pair to NoContraction, apart from the store's narrowing
converted_half_rounding_is_the_exactly_rounded_half (red two commits back) asserted that every
OpFConvert in its kernel is decorated NoContraction in both forms. Its kernel also stores the half
result, and that store's narrowing to bits (narrow::to_bits) is no pair: it is decorated under the
float controls alone, which a_half_encode_is_the_devices_narrowing_in_every_form holds and the fix
keeps. So the assertion also failed at the fix, on the store's narrowing ("round Converted:
[Allowed, Allowed, Allowed]" before the fix, job m3-max-82752).

The test now finds the pair by structure (a narrowing of an f32 to 16 bits and a widening of its
result back to 32 bits), asserts both are NoContraction in both forms, and asserts every other
conversion takes its form's decoration: NoContraction under the float controls, none in
Converted. Test only; no translation output changes.
2026-12-03 02:10:22 -08:00
..