The exact emulation of the directed roundings, the integer .sat clamp, float-to-int pre-rounding,
the RoundingModeRTE plan and PrecisionNote::NativeConversionRounding are removed; they stay in
history at 540011dd49. The parser accepts the suffix and the lowering is the plain conversion:
Metal's compilers disagree on the suffixes, and the owner's 11-07 rule takes the cheapest answer
inside the envelope where real Macs disagree.
Measured per form, 64 threads of the fixture's edge values, one kernel per intrinsic (probes
m3-max-14380 Radeon Pro 5300M and m3-max-14381 UHD Graphics 630, macOS 26.7.1; m3-max-14382 M3
Max, macOS 27.0.1):
form M3 Max 5300M 630 now
float->int .rte nearest even truncates no pipeline truncates
float->half .rtz/.rtp/.rtn .rtz as named, nearest even as named nearest even
no pipeline rtp/rtn
float->int .sat unsigned keeps a 8-bit not no pipeline clamps
negative's wrap, long clamped, long
of inf is 0 clamped to int
int->float/half any mode .rte nearest even, nearest even nearest even nearest even
no pipeline directed
int->int .sat no pipeline wraps wraps wraps
float->int .rtp/.rtn no pipeline truncates no pipeline truncates
The last three rows are no difference: every Mac that creates the pipeline answers the plain
conversion. OpenCL on all three GPUs (not Metal) answers the exact IEEE roundings. The M3's
compiler service exits (XPC_ERROR_CONNECTION_INTERRUPTED) on the forms it does not compile.
- metal2vulkan-air: Convert::parse takes `.<rte|rtz|rtp|rtn>` and then `.sat` (to an integer
only), between numbers; the module doc carries the measurement. Test: every suffix parses to
its plain form.
- Engine test: 24 forms with every rounding (and .sat to an integer) compile on lavapipe and on
moltenvk-m3 without shaderInt64 to the plain conversion's module words and notes, and pass L3.
- Fixture: kernel_convert_rounding_apple_gpu now calls only the forms the M3 compiles and
answers plainly, for a case qualified there.
- docs/API.md accepted differences: the table above.
- SEMANTICS_VERSION 2024 (development is at 2023); ARTIFACT_FORMAT_VERSION back to 500, with no
codec change.
Verified: not yet run (dispatched next).