air.convert roundings: drop the double paths AIR cannot name; fix the tests' first run

air.convert names no double (the AIR element types stop at f32), so the directed double
narrowings, the double results and the 64-bit RTE width were unreachable: removed. The nearest-even
plan is now a flag for a float result, and narrow::rte_modes decides 32 bits and the widths the
device's independence ties to it. The engine test reads the interpreter's buffers directly, pins
the RTE widths of the venue profiles (lavapipe and RADV 32, ANV 16/32/64, MoltenVK and the floor
none) and the parse test names a float narrowing instead of a double one.

Verified: the first test job (m3-max-14044, homelab-ms01-1) failed on the double case in the parse
test and a compile error in the engine test; both fixed here, rerun next.
This commit is contained in:
Anees Iqbal committed 2026-11-11 02:41:51 -08:00
1 parent cd634b862e
commit 2bc702f4b4
10 files changed
+97 -166

No files matched your search

+4 -4
View File
@@ -4199,10 +4199,10 @@ bound.
- `metal2vulkan-degrade-native-conversion-rounding` (precision).
`PrecisionNote::NativeConversionRounding`: Native device maths (a conversion): an `air.convert`
whose name rounds to nearest even (`.rte`: OpenCL's `convert_float` of an `int`, as Apple's
OpenCL compiler spells it) and that can round (a 32- or 64-bit integer to `float`, a 64-bit
integer to `double`, a `double` to `float`) is the device's correctly rounded conversion where
the entry cannot declare `RoundingModeRTE` for the result's width with the widths the device's
rounding-mode independence ties to it (MoltenVK, whose 64-bit rounding mode it does not state):
OpenCL compiler spells it) and that can round (a 32- or 64-bit integer to `float`) is the
device's correctly rounded conversion where the entry cannot declare `RoundingModeRTE` for 32
bits with the widths the device's rounding-mode independence ties to it (MoltenVK, whose 64-bit
rounding mode it does not state):
either value around the exact one, the device's choice, where Metal answers the nearer one, ties
to even. Where the entry declares the mode the conversion is Metal's and records nothing. The
conversions that round toward zero or an infinity (`.rtz`, `.rtp`, `.rtn`) are exact on every