Files
metal2vulkan/crates
Anees Iqbal cd634b862e Engine test of air.convert with a rounding: every rounding exact on the interpreter, RTE declared or noted
Each conversion form Apple's OpenCL compiler emits with a rounding (int to float and half, float
to int with and without .sat, int to int .sat, float to half and half to float) compiles alone on
lavapipe (64-bit integers) and on moltenvk-m3 without shaderInt64 (the wide path), passes L3, and
on the CPU interpreter answers the exact IEEE result of its rounding for each edge input,
computed in integer arithmetic. A control test shows the inputs tell each directed rounding from
nearest even where the form can round, so a lowering that left one to the device's conversion
would fail. On every committed profile an int to float .rte declares RoundingModeRTE where
narrow::rte_modes allows it and records NativeConversionRounding where not; a form that cannot
round and a directed one declare and record neither.

Verified: not yet run (dispatched next).
2026-11-11 02:41:51 -08:00
..