diff options
| author | Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> | 2026-11-23 20:20:42 -0700 |
|---|---|---|
| committer | Nolan Cotter <186326284+NolanCotter@users.noreply.github.com> | 2026-11-23 20:21:17 -0700 |
| commit | 6446e3ce76483c5c3ba2b539258ab5d80482369e (patch) | |
| tree | 573721d7ee199e6e6c8e4ae93d530104e0b6766e /tests/test_run_gpu_tests_python_assembler.py | |
| parent | d478a92d4d7eae1d7b512cb4553ddc4fbc300e85 (diff) | |
rdna2spirv: translate v_sat_pk_u8_i16 (SHADER-SATPK-U8)
The VOP1/VOP3 op saturates each signed i16 half of SRC0 to unsigned
8-bit and packs the pair into the low 16 bits of VDST, preserving the
high half (GFX9+ partial write; LLVM VOP1Inst_t16, Mesa ACO
instr_is_16bit). Neg/abs/clamp/omod are refused; _sdwa restricts to the
documented source/destination selects; _e32 rejects all modifiers.
Adds a hand-written fixture and a semantic test driving the SPIR-V
through spirv_mini_interp against a plain-Python reference (lane edge
values, SGPR/literal sources, sdwa selects, refused modifiers), the
docs/design.md contract row, and drops the op from the
fssm_crosscheck unhandled list. The two tests that used the mnemonic
as the still-unsupported canary now use v_mullit_f32.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions