tests: update SDWA expectations that #3470 made stale #3557
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3557
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3555"
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?
@legacy-code-archaeologist on GitHub · 2026-11-30 04:47 UTC · original
legacy-code-archaeologist:tests/sdwa-stale-expectations→main· +33 −7 · 3 files · 1 commits · closed without mergingSummary
This fixes the four
mainfailures from #3549. It changes tests and one doc only; the translator is unchanged.tests/native_cvt_f16_i16_check.py: the SDWA program withdst_select = 6(an f32 placement) now passes the profile gate that #3472 opened, and is refused at the 16-bit destination rule. The case now expectsunsupported SDWA destination modifier. The positive SDWA cases for all four ops inOPSare already innative_sdwa_profiles_check.py(NEW_PROFILES), and a comment points there.tests/native_sdwa_profiles_check.py:v_sin_f16has an SDWA lowering since #3302, so it is no longer a refusal control (case 14).v_sin_f16andv_cos_f16are now admitted profiles in the third program, which grows from 6 to 8 slots, still under the 32-slot layout.v_sin_f16picks -0.125 from WORD_0 with ABS and writes WORD_1 with PRESERVE. Dropping the ABS flips the sign of 0.7071. A wrong word pick reads 0.25 turns and gives 1.0.v_cos_f16picks 0.5 and gives exactly -1.0.native_sin_cos_f16_check.expected_trig_f16. The readback uses that file's tolerance, 2^-20 plus two binary16 ulp, on the placed half only. The other half stays exact, and ±0/±1 are compared exactly.docs/experiments/direct-sdwa-profiles.md: the "still refused in SDWA" sentence and the program and refusal counts are corrected.Fixes #3549
Tests
On
main44a3ad5a, Windows 10.0.26100, dev preset:ctest --preset dev --no-tests=error -R '^native_(cvt_f16_i16|sdwa_profiles)_'givesnative_cvt_f16_i16_ir,native_cvt_f16_i16_controls,native_sdwa_profiles_irandnative_sdwa_profiles_dxilfailed, as in #3549.ctest --preset dev --no-tests=error -R '^native_(cvt_f16_i16|sdwa_profiles|sin_cos_f16)_'gives 6 passed and 3 hardware skipped (77).ctest --preset dev --no-tests=error -R '^native_' -E '_hardware$' -j 2: 243/243 passed.python -B tests/docs_links_check.py: passed (181 files, 726 links).AI-assisted: written with Claude Code. I reviewed it and ran the commands above.
🤖 Generated with Claude Code
@legacy-code-archaeologist on GitHub · 2026-11-30 09:21 UTC · original
Closing as superseded: #3544 (merged at
2e30cc59) made the same three expectation changes and removed thev_sin_f16refusal control, so the four failures from #3549 are gone onmain. All that is left here is the two positivev_sin_f16/v_cos_f16profile entries, andnative_sin_cos_f16already covers those SDWA forms. Not worth a separate review.AI-assisted.
Pull request closed