[PR #708] tests/semantic: provide floating-point edge-case conformance suite (SHADER-13) #746

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/708
Author: @abnalstlll-byte
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: feat/shader13-fp-edge-conformance


📝 Commits (1)

  • f2ff7f2 tests/semantic: provide floating-point edge-case conformance suite (SHADER-13)

📊 Changes

1 file changed (+126 additions, -0 deletions)

View changed files

➕ tests/semantic/test_fp_edge_conformance.py (+126 -0)

📄 Description

Summary

Implements SHADER-13: Floating-point edge-case conformance suite.

Adds targeted synthetic conformance tests in \ ests/semantic/test_fp_edge_conformance.py\ to validate IEEE-754 / RDNA2 floating-point edge behaviors without requiring retail shaders or GPU execution:

  • Signed zeroes (+0.0\ vs -0.0, preservation of sign bits across additions, multiplications, and reciprocal operations).
  • Subnormal (denormal) flushing vs retention contracts under DXBC \D3D10_SB_FLOAT_REPRESENTATION.
  • Quiet vs signaling NaNs, NaN propagation rules in minimum/maximum semantics (\ min\ / \ max).
  • Overflow saturation bounds under clamp modifiers ([0.0, 1.0]\ and signed intervals).
  • Reciprocal arithmetic edge behavior (\1.0 / +0.0 = +inf, \1.0 / -0.0 = -inf, \1.0 / +/-inf = +/-0.0).

Verification

  • Tested with standard library: \python -I tests/semantic/test_fp_edge_conformance.py\ (9/9 PASS in 0.001s).
  • Clean-room check: \python -I scripts/check_no_game_data.py\ clean (0 issues).
  • Zero dependencies outside standard library Python.
  • AI-assisted (Claude Code).

🔄 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/708 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/shader13-fp-edge-conformance` --- ### 📝 Commits (1) - [`f2ff7f2`](https://github.com/ubiquitarianism/leonida/commit/f2ff7f271dfd6a8a71bb81d5d8e542425493f829) tests/semantic: provide floating-point edge-case conformance suite (SHADER-13) ### 📊 Changes **1 file changed** (+126 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tests/semantic/test_fp_edge_conformance.py` (+126 -0) </details> ### 📄 Description ### Summary Implements **SHADER-13**: Floating-point edge-case conformance suite. Adds targeted synthetic conformance tests in \ ests/semantic/test_fp_edge_conformance.py\ to validate IEEE-754 / RDNA2 floating-point edge behaviors without requiring retail shaders or GPU execution: - Signed zeroes (\+0.0\ vs \-0.0\, preservation of sign bits across additions, multiplications, and reciprocal operations). - Subnormal (denormal) flushing vs retention contracts under DXBC \D3D10_SB_FLOAT_REPRESENTATION\. - Quiet vs signaling NaNs, NaN propagation rules in minimum/maximum semantics (\ min\ / \ max\). - Overflow saturation bounds under clamp modifiers (\[0.0, 1.0]\ and signed intervals). - Reciprocal arithmetic edge behavior (\1.0 / +0.0 = +inf\, \1.0 / -0.0 = -inf\, \1.0 / +/-inf = +/-0.0\). ### Verification - Tested with standard library: \python -I tests/semantic/test_fp_edge_conformance.py\ (9/9 PASS in 0.001s). - Clean-room check: \python -I scripts/check_no_game_data.py\ clean (0 issues). - Zero dependencies outside standard library Python. - AI-assisted (Claude Code). --- <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#746
No description provided.