From 93dc391dcaf2c3960fa61c83fa8036a878fe342d Mon Sep 17 00:00:00 2001 From: qhukz13 Date: Tue, 24 Nov 2026 22:45:58 +0200 Subject: [PATCH] tests/semantic: interp_ij_analysis's block split, reaching-write walk and f16 pair rules The computed I/J refusals were tested only on the f32 pair in straight-line code, so 22 of the function's 115 mutants survived all 15 interpolation test files. New cases: a pair split only by a branch target, s_branch with no fallthrough, a write reaching through a taken branch only, a write two blocks back, a loop that never writes the register, a write after the pair or at the site itself, a p2 before its p1, and the f16 pair: two p2s of one p1, the partial rewritten or read (as another p2's J) between the ops, and the nearest p1 as the p2's partner. Test only. Co-Authored-By: Claude Opus 5.5 --- tests/semantic/test_interp_computed_ij.py | 121 ++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/tests/semantic/test_interp_computed_ij.py b/tests/semantic/test_interp_computed_ij.py index 7b30f29f7e..389d616528 100644 --- a/tests/semantic/test_interp_computed_ij.py +++ b/tests/semantic/test_interp_computed_ij.py @@ -311,5 +311,126 @@ def test_computed_pair_under_f16_interp_fallback(self): rdna2spirv.F16_HALVES = old +ENC = " ; encoding: [0,0,0,0]" # 4-byte encodings make the program counters (and branches) real +F16_LO, F16_HI = (0.5, 1.5, 2.5), (-4.0, 8.0, 16.0) +F16_ATTR0 = [(struct.unpack("