From 59e03b2c382ec7d7cf4139290b36d42d3d1f03a4 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 28 Oct 2026 13:36:31 -0700 Subject: [PATCH] Fix test case. --- test/mutants.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mutants.mjs b/test/mutants.mjs index 2dd8fde..3a9a5e2 100644 --- a/test/mutants.mjs +++ b/test/mutants.mjs @@ -48,7 +48,7 @@ const mutants = [ { guard: FE_ISZERO, from: 'const d = v128.or(t0, t1)', to: 'const d = t0', why: 'tests only the low half' }, { guard: FE_ISZERO, from: 'const d = v128.or(t0, t1)', to: 'const d = v128.xor(t0, t1)', why: 'combines the halves with xor, so equal bytes 16 apart cancel' }, { guard: FE_ISZERO, from: 'const d = v128.or(t0, t1)', to: 'const d = v128.and(t0, t1)', why: 'combines the halves with and' }, - { guard: FE_ISZERO, from: 'v128.load(changetype(t_u8x32), 1 << 4)', to: 'v128.load(changetype(t_u8x32), 15)', why: 'loads the high half a byte early, so byte 31 is never tested' }, + { guard: FE_ISZERO, from: 'v128.load(t_ptr, 1 << 4)', to: 'v128.load(t_ptr, 15)', why: 'loads the high half a byte early, so byte 31 is never tested' }, { guard: FE_ISZERO, from: 'return u8(v128.any_true(d)) ^ 1', to: 'return u8(v128.any_true(d))', why: 'inverts its result' }, { guard: FE_ISZERO, in: 'fe_reduce', from: 'q = (f9 + q) >> 25', to: 'q = (f9 + q) >> 26', why: 'reduces with a 26-bit shift where the top limb is 25 bits, so loose limbs past 2²⁵⁵ come out wrong' }, ] -- 2.52.0