diff options
| author | QemmHD <stephenlethco2@gmail.com> | 2026-11-25 05:01:35 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-25 05:01:35 -0500 |
| commit | 57ba40bd6d13fa742d41ae10fc207abd1074b6b8 (patch) | |
| tree | f8db5c030235b542a9955a7966e2f9aae21a1047 /docs/d3d12_command_objects.md | |
| parent | 3de22a19047b168d28a7a11152bf05d18ed0062e (diff) | |
| parent | bc2d333495399fb45c821fa760f3e9d879f1b622 (diff) | |
Merge pull request #1493 from ubiquitarianism/claude/valu-literal-sext
Merging.
**Why merged**
- Fixes a real translator bug: the 32-bit literal of signed 64-bit `v_cmp(x)_*_i64` (and the other signed 64-bit VALU forms this PR covers) was zero-extended instead of sign-extended, so comparisons against negative literals gave wrong results.
- Independent checks:
- approved by tiguan26;
- KEEP from ytsodacan's review;
- independent hardware verification by ecox982745 on an RTX 4090: the parent gave 444 wrong results out of 2,016 lane outputs, this head gives 0, and the unsigned controls are unchanged.
- Re-tested here merged onto current main (3de22a190) on an RTX 4070 SUPER:
- the merge is clean;
- `tests/semantic` VALU/VCMP files plus the PR's new test: 1,483 passed, 21,175 subtests passed, 0 failed;
- the full semantic suite on 604ddff0b: 6,287 tests, 0 failed (main: 6,279);
- the PR's new test fails 5 of 8 against main's translator, as a control;
- the consistency set is the same as main, whose only failure is the pre-existing `test_runtime_paths` workflow check.
**Why it's good**
- The change is small and scoped: `valu_imm_i64`/`src64_i64` are applied only to the signed 64-bit forms, and the unsigned paths are untouched.
- It comes with a regression test pinned to the exact encodings.
- Wrong signed compares silently steer branches and masks in translated shaders, so this removes a class of hard-to-trace wrong results.
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions