mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1374] rdna2spirv: v_mul/fma/min/max_f64 and the f64 <-> f32/int conversions… #1404
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#1404
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/1374
Author: @vsking2000
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:shader-f64-valu-ops📝 Commits (3)
2e6fc3crdna2spirv: v_mul/fma/min/max_f64 and the f64 <-> f32/int conversions (SHADER-F64-VALU-OPS)a44423brdna2spirv: the f64 results of SHADER-F64-VALU-OPS ignore the omod, as measured for the other f64 results1b0442fMerge main into shader-f64-valu-ops📊 Changes
7 files changed (+425 additions, -44 deletions)
View changed files
📝
docs/design.md(+2 -1)📝
tests/semantic/spirv_mini_interp.py(+7 -0)📝
tests/semantic/test_valu_cvt_int_f64.py(+80 -28)➕
tests/semantic/test_valu_f64_ops.py(+220 -0)📝
tools/f64_diff.py(+1 -1)📝
tools/rdna2spirv.py(+113 -13)📝
tools/shader_ir.py(+2 -1)📄 Description
… (SHADER-F64-VALU-OPS)
The translator refused seven binary64 VALU ops by name. Gen.f64_valu now lowers them:
Source abs/neg apply; f64 results take clamp/omod through clamp_mods_f64 as v_add_f64 does; integer results take no output modifier. v_mul/v_fma_f64 are refused under a directed MODE.FP_ROUND, which only v_add_f64 models.
shader_ir flags their hex literal sources as f64 literals (bits 63:32); spirv_mini_interp gets OpFConvert; docs/design.md gets a contract row. tests/semantic/test_valu_f64_ops.py is new, and test_valu_cvt_int_f64.py, which asserted the integer conversions are refused until implemented, now runs them through the translator. CPU interpreter and spirv-val only; not GPU-checked.
AI-assisted.
Claude-Session: https://claude.ai/code/session_01Y7fbZYVY7EtLknWBZUfSLf
Claimed in the coordination issue as:
Depends on:
Fixes:
What and why
Tested
GPUs tested:
AI-assisted:
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.