diff options
| author | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 18:54:57 +0100 |
|---|---|---|
| committer | Vonsek <45567075+Vonsek@users.noreply.github.com> | 2026-11-22 18:54:57 +0100 |
| commit | 37c29f6c822299bd5999f1f8d9ce78661a0d1675 (patch) | |
| tree | a79e43b69816a89890599dc612c688ce1c30a77a /scripts/run_gpu_tests.py | |
| parent | 49475796c226c8511b9470bf97a4daf57b8af323 (diff) | |
Tests: GPU test for the far-branch idiom, and no crash on it without encodings
ps_far_branch runs s_getpc_b64 / s_add_u32|s_sub_u32 / s_addc_u32|s_subb_u32 /
s_setpc_b64: two forward jumps, a sub/subb loop, an add/addc -1 loop and a
conditional far jump, with K derived by hand. fold_far_branches now folds the
idiom only when its instructions have encodings, so a listing without them
gives Unsupported instead of a TypeError.
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 698ec36d0..a26bda040 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1146,6 +1146,7 @@ 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_far_branch": (0x00000007, 0x00000013, 0x00000051, 0x0000000B), # far branches (.asm header) | ||
| 1149 | "ps_cvt_off": (0xBF000000, 0x3EE00000, 0xBE800000, 0x3F800000), | 1150 | "ps_cvt_off": (0xBF000000, 0x3EE00000, 0xBE800000, 0x3F800000), |
| 1150 | "ps_fmac_f16_mods": (0xAAAA3C00, 0xAAAA3E00, 0xAAAA0000, 0xAAAA4000), | 1151 | "ps_fmac_f16_mods": (0xAAAA3C00, 0xAAAA3E00, 0xAAAA0000, 0xAAAA4000), |
| 1151 | "ps_vop3_const_mods": (0xC0000000, 0xBF800000, 0x3F800000, 0xAAAABC00), | 1152 | "ps_vop3_const_mods": (0xC0000000, 0xBF800000, 0x3F800000, 0xAAAABC00), |