[PR #373] Tests: GPU coverage for v_cmp_class_f16/f64, v_fmamk/fmaak_f16, v_cvt_pknorm_*_f16 and v_mac_legacy_f32 #427

Open
opened 2026-11-26 20:17:50 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/373
Author: @KoLolX3
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: test/vfloat-gpu


📝 Commits (1)

  • 02af032 Tests: GPU coverage for v_cmp_class_f16/f64, v_fmamk/fmaak_f16, v_cvt_pknorm_*_f16 and v_mac_legacy_f32

📊 Changes

4 files changed (+138 additions, -10 deletions)

View changed files

📝 docs/design.md (+5 -5)
📝 runtime/test/shaders/check.py (+5 -2)
➕ runtime/test/shaders/cs_vfloat_ext.asm (+122 -0)
📝 scripts/run_gpu_tests.py (+6 -3)

📄 Description

Takes over draft #135 (carried over from the original repo by its author, KoLolX3). Adds a synthetic GPU fixture for floating-point class, f16 FMA and normalized conversions, and legacy multiply-add translations.

Rebased on main 3f81d46a, preserving newer contract documentation and the cs_w64x_cmp_sdst test registration. The fixture tests translated SPIR-V; its result does not establish native hardware behavior for the original AMD opcodes.

Tested on AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.3.1, Linux): the fixture translated and passed spirv-val, and all eight expected words matched with subgroup size 32 in native and LEONIDA_W64_EMULATE=1 builds. python -I tests/test_run_gpu_tests.py passed 68 tests; the semantic suite passed 6,279 tests in 487 files. Compileall, make_game.py --help, check_no_game_data.py on changed files and git diff --check passed. Synthetic fixtures only, no game files.

AI-assisted: yes (Claude Code and OpenAI Codex).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/373 **Author:** [@KoLolX3](https://github.com/KoLolX3) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test/vfloat-gpu` --- ### 📝 Commits (1) - [`02af032`](https://github.com/ubiquitarianism/leonida/commit/02af0326756404be1d60b2a61b39cf9be2bd51d9) Tests: GPU coverage for v_cmp_class_f16/f64, v_fmamk/fmaak_f16, v_cvt_pknorm_*_f16 and v_mac_legacy_f32 ### 📊 Changes **4 files changed** (+138 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/design.md` (+5 -5) 📝 `runtime/test/shaders/check.py` (+5 -2) ➕ `runtime/test/shaders/cs_vfloat_ext.asm` (+122 -0) 📝 `scripts/run_gpu_tests.py` (+6 -3) </details> ### 📄 Description Takes over draft #135 (carried over from the original repo by its author, KoLolX3). Adds a synthetic GPU fixture for floating-point class, f16 FMA and normalized conversions, and legacy multiply-add translations. Rebased on `main` `3f81d46a`, preserving newer contract documentation and the `cs_w64x_cmp_sdst` test registration. The fixture tests translated SPIR-V; its result does not establish native hardware behavior for the original AMD opcodes. Tested on AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.3.1, Linux): the fixture translated and passed `spirv-val`, and all eight expected words matched with subgroup size 32 in native and `LEONIDA_W64_EMULATE=1` builds. `python -I tests/test_run_gpu_tests.py` passed 68 tests; the semantic suite passed 6,279 tests in 487 files. Compileall, `make_game.py --help`, `check_no_game_data.py` on changed files and `git diff --check` passed. Synthetic fixtures only, no game files. AI-assisted: yes (Claude Code and OpenAI Codex). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#427
No description provided.