diff options
| author | dcastell1 <dcastell1@users.noreply.github.com> | 2026-11-22 00:31:28 +0100 |
|---|---|---|
| committer | dcastell1 <dcastell1@users.noreply.github.com> | 2026-11-22 00:31:28 +0100 |
| commit | e166d2eb3404d822e738b5e75680173f03005651 (patch) | |
| tree | 917596dccea9b2c73dd3ce4e8ce5e9be8c28a507 /runtime/src/main.cpp | |
| parent | d937b7f092dbc188b59754e5c73c1a9dac553cf9 (diff) | |
fix(fuzz): v_perm_b32 selectors 9/11 read bit 31, not bit 23
The oracle took bit 23 as the sign bit for selector bytes 9 and 11.
The ISA takes bit 7 of bytes 1/3 of each source: bits 15/31 of src1 and
47/63 of src0, so the second sign bit of each source is bit 31. The
translated SPIR-V was already right; this was a false mismatch in the
oracle, found by @kotorvr reviewing #325.
Adds a pinned test with both sign-bit patterns, and makes half of the
generated v_perm cases use a pinned selector built from bytes 0..15 so
the sign-bit, 0x00 and 0xff ranges are exercised instead of depending
on the seeded scratch values.
Verified: 29 cpu_ref tests, 6 shader_diff tests, 440 semantic tests,
and 3000 seeded programs with 0 mismatches and 0 skips.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions