mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1163] rdna2spirv: support directed MODE.FP_ROUND[3:2] (+inf/-inf) and dynamic s_setreg_b32 (OLD-9982) #1196
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1196
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1163
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9982-mode-fp-round-directed📝 Commits (2)
0fc211ardna2spirv: support directed MODE.FP_ROUND[3:2] (+inf/-inf) and dynamic s_setreg_b32bc80aeadocs/design.md: add MODE.FP_ROUND[3:2] contract row (OLD-9982)📊 Changes
4 files changed (+522 additions, -49 deletions)
View changed files
📝
docs/design.md(+1 -0)➕
tests/semantic/test_mode_fp_round_directed.py(+386 -0)📝
tests/semantic/test_scalar_noop_waitcnt.py(+4 -5)📝
tools/rdna2spirv.py(+131 -44)📄 Description
Claimed in the coordination issue as: OLD-9982 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141822512)
What and why
Carries forward
old-pr/9982(draft #247, original commit authorLewandoxpreserved; indexed in #17), rebased cleanly onto currentmain.Extends
MODE.FP_ROUND[3:2]support intools/rdna2spirv.pyto all four IEEE 754 rounding modes (RN,+inf,-inf,RTZ) and dynamics_setreg_b32:+inf/-inf) for f16 conversions, f16 arithmetic/OMOD overflow, and f64 arithmetic whenMODE.FP_ROUND[3:2]is set vias_round_mode,s_setreg_imm32_b32, or dynamics_setreg_b32.tests/semantic/test_mode_fp_round_directed.py(5 test cases covering f16 conversions across all four modes, f16 directed arithmetic & cancellation sign, f16 OMOD overflow,s_round_mode+ dynamics_setreg_b32, and f64 directed arithmetic/overflow) and updatestests/semantic/test_scalar_noop_waitcnt.py.Tested
python -m unittest discover -s tests/semantic -p test_mode_fp_round_directed.py -v: 5 tests, OK.python -m unittest discover -s tests/semantic -p test_scalar_noop_waitcnt.py -v: 13 tests, OK.python -I scripts/run_semantic_tests.py tests/semantic: 471 files, 6,173 tests, 0 files failed.python -m compileall -q make_game.py tools tests: exit 0.python -I scripts/check_no_game_data.py tools/rdna2spirv.py tests/semantic/test_mode_fp_round_directed.py tests/semantic/test_scalar_noop_waitcnt.py: exit 0 (no game data).GPUs tested: n/a (CPU SPIR-V interpreter semantic suite on Windows 11 Pro 64-bit, Python 3.12.10)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (extends existingMODE.FP_ROUND[3:2]rule)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.