SEMANTICS_VERSION 2085: a narrow integer operation the AIR marks nuw keeps no mask

The two commits before this one: an add, sub, mul or shl of a narrow integer that the AIR marks
nuw no longer masks its result to its width, since any result that would carry is poison; where
a poison value meets something that must stay defined (freeze, a store's words, a narrow
atomic's operand, a bitcast's packed lanes) it is masked. A chunked vector of padded integer lanes
is frozen chunk by chunk, which the moltenvk-m3 profile had refused. Translator output changes
(SEMANTICS).

Verified by imgleak's runs on msi: at ed8468c686, 471/471 touched tests pass (25294; engine_nuw,
lower::arith, engine_arith, engine_atomics, engine_access, engine_arena, engine_aggregate_access,
engine_pointer_memory, memory::, engine_bit_manipulation, engine_copy, fuzz_interp), and clippy -p
metal2vulkan --all-targets --all-features -D warnings is clean. Negative controls: the poison
test with the first commit's chunk.rs fails ("frozen_wrap_chunked on amd-rdna3-radv: 0x10000");
engine_nuw with the base's lower/ and memory/ fails a_nuw_loop_counter_is_not_masked
("nuw_i16_loops on amd-rdna3-radv: 2 masks to 16 bits", 25338). The SR conv kernel's timing in
the first commit's body is from the dumped module with its masks removed; the timing of the
kernel translated by this change is pending. Golden tables move wherever a fixture has a narrow
nuw op and are re-blessed at the next pin.
This commit is contained in:
Anees Iqbal committed 2026-11-13 03:47:52 -08:00
1 parent 80342f2ea2
commit e7ea80f1bb
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ mod tests;
/// unchanged version, and its bless records the version. Independent of the crate's version and of
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
/// history.
pub const SEMANTICS_VERSION: u32 = 2084;
pub const SEMANTICS_VERSION: u32 = 2085;
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another