diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 17:13:04 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 17:13:04 +0100 |
| commit | ecc6bd286e1e513c3304fd85e583768132f5418e (patch) | |
| tree | b9d0002ede9b4434a42ea46699e094d54ed7391c /scripts/run_gpu_tests.py | |
| parent | 4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff) | |
rdna2spirv: a 16-bit SDWA result with dst_sel:DWORD zeroes the high half
A 16-bit op in SDWA form (f16 VOP1/VOP2, v_cvt_u16/i16_f16, v_cvt_f16_u16/i16)
with dst_sel:DWORD writes the result zero-extended on RDNA2, whatever
dst_unused says. Gen.insn only marked an SDWA destination for a dst_sel other
than DWORD, so write_lo16 applied the non-SDWA keep-the-high-half rule and the
translator returned 0xdead4000 where gfx1036 returns 0x00004000.
Mark every SDWA VGPR destination and let write_lo16 skip the keep for it.
ps_sdwa_dword_hi.asm (GPU) and its semantic fixture pin four ops and three
dst_unused values; docs/design.md gets the contract row.
AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 025504fb8..0dc5e8a84 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1113,6 +1113,7 @@ def run_suite(a, work: str) -> int: | |||
| 1113 | "ps_ops4": (0x34000010, 0x00120800, 0xBEEF0000, 0x12343C00), | 1113 | "ps_ops4": (0x34000010, 0x00120800, 0xBEEF0000, 0x12343C00), |
| 1114 | "ps_scc": (1, 1, 3, 0x80000000), | 1114 | "ps_scc": (1, 1, 3, 0x80000000), |
| 1115 | "ps_sdwa": (0x000000F1, 0xBFFEFFF2, 0x3C003344, 0xBFF70000), | 1115 | "ps_sdwa": (0x000000F1, 0xBFFEFFF2, 0x3C003344, 0xBFF70000), |
| 1116 | "ps_sdwa_dword_hi": (0x00004000, 0x00000003, 0x00004700, 0x0000C000), # 16-bit SDWA, dst_sel:DWORD | ||
| 1116 | "ps_legacy_mul": (0, 0, 0, 0x40C00000), # same expectation as check.py | 1117 | "ps_legacy_mul": (0, 0, 0, 0x40C00000), # same expectation as check.py |
| 1117 | "ps_ops5": (0x12340010, 0xBEEF0800, 0xAAAAFFFF, 0xDEADBC00), # from the .asm headers | 1118 | "ps_ops5": (0x12340010, 0xBEEF0800, 0xAAAAFFFF, 0xDEADBC00), # from the .asm headers |
| 1118 | "ps_ops6": (0xF800FFFF, 0x01000010, 0x00800800, 0x8000FFF0), | 1119 | "ps_ops6": (0xF800FFFF, 0x01000010, 0x00800800, 0x8000FFF0), |