diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 18:24:00 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 18:24:00 +0100 |
| commit | 6bbc893ea25e133f6fe2a171d69b7ab1d5e0d296 (patch) | |
| tree | e6fd04536381e41f9477a69abcb8b3bb4bc21692 /scripts/run_gpu_tests.py | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
Tests: GPU test for 16-bit float VOPC compares (all 16 f16 predicates, e32 and e64)
Two pixel tests, ps_vcmp_f16 (e32, VCC) and ps_vcmp_f16_e64 (SGPR destination,
swapped operands), with NaN, +-0, +-inf, f16 denormals and junk high halves.
Words derived by hand in the headers; semantic fixture and test added.
AI-assisted.
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 698ec36d0..05d892cca 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1146,6 +1146,8 @@ def run_suite(a, work: str) -> int: | |||
| 1146 | "ps_fnan_fract": (0x3F7FFFFF, 0x00003BFF, 0xC0200000, 0xC0200000), | 1146 | "ps_fnan_fract": (0x3F7FFFFF, 0x00003BFF, 0xC0200000, 0xC0200000), |
| 1147 | # TEST-175: docs/design.md rules that were checked on the CPU only (derivations in the .asm headers) | 1147 | # TEST-175: docs/design.md rules that were checked on the CPU only (derivations in the .asm headers) |
| 1148 | "ps_cmp_nlg": (0x40000037, 0x40000007, 0x40000001, 0x3F800000), | 1148 | "ps_cmp_nlg": (0x40000037, 0x40000007, 0x40000001, 0x3F800000), |
| 1149 | "ps_vcmp_f16": (0x48A12080, 0x4CE9B1A2, 0x4BA72C98, 0x4FEFBDBA), # 16-bit float v_cmp e32 (.asm header) | ||
| 1150 | "ps_vcmp_f16_e64": (0x44C11100, 0x4CF171C1, 0x47C71D18, 0x4FF77DD9), # same, e64 with swapped operands | ||
| 1149 | "ps_cvt_off": (0xBF000000, 0x3EE00000, 0xBE800000, 0x3F800000), | 1151 | "ps_cvt_off": (0xBF000000, 0x3EE00000, 0xBE800000, 0x3F800000), |
| 1150 | "ps_fmac_f16_mods": (0xAAAA3C00, 0xAAAA3E00, 0xAAAA0000, 0xAAAA4000), | 1152 | "ps_fmac_f16_mods": (0xAAAA3C00, 0xAAAA3E00, 0xAAAA0000, 0xAAAA4000), |
| 1151 | "ps_vop3_const_mods": (0xC0000000, 0xBF800000, 0x3F800000, 0xAAAABC00), | 1153 | "ps_vop3_const_mods": (0xC0000000, 0xBF800000, 0x3F800000, 0xAAAABC00), |