Commit Graph

1 Commits

Author SHA1 Message Date
37c29f6c82 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.
2026-11-22 18:54:57 +01:00