From 1ffcc43b39d87098de19fb5a4cc7ca0c47e33a2c Mon Sep 17 00:00:00 2001 From: kalsprite Date: Thu, 13 Aug 2026 21:34:17 -0700 Subject: [PATCH] generator typo --- tests/abi/gen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/abi/gen.py b/tests/abi/gen.py index e885b3c6b..0ed67de77 100644 --- a/tests/abi/gen.py +++ b/tests/abi/gen.py @@ -342,8 +342,10 @@ def build(): tier=tier, odin_set=["{} = " + "{" + ", ".join(val(i, tag) for i in range(n)) + "}"], odin_get=[(f"simd.extract({{}}, {i})", f"{ot}({val(i, tag)})") for i in range(lanes)]) - # the same widths WRAPPED, so the pair is directly comparable - for tag, n, cname, tier in BARE[:3] + [BARE[7]]: + # the same widths WRAPPED, so the pair is directly comparable. Selected by + # NAME, not by position: indices move whenever a row is added. + WRAP = {("i8", 4), ("i8", 8), ("i16", 2), ("f16", 2)} + for tag, n, cname, tier in [b for b in BARE if (b[0], b[1]) in WRAP]: ot = SCALARS[tag][0] lanes = min(n, 4) add(f"wv{n}_{tag}", f"struct {{ v: #simd[{n}]{ot} }}",