Repository navigation
tests: update SDWA expectations that #3470 made stale - #3555
Closed
legacy-code-archaeologist wants to merge 1 commit into
Closed
legacy-code-archaeologist wants to merge 1 commit into
legacy-code-archaeologist wants to merge 1 commit into
Conversation
native_cvt_f16_i16's SDWA program with dst_select 6 now passes the profile gate and is refused at the 16-bit destination rule, so it expects that reason; the positive SDWA cases for these ops are in native_sdwa_profiles. v_sin_f16 and v_cos_f16 have an SDWA lowering (R0Y00#3300), so native_sdwa_profiles drops them from the refusals and checks them as admitted profiles, with the readback tolerance of native_sin_cos_f16. The profiles note no longer calls them refused. Fixes R0Y00#3547 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing as superseded: #3542 (merged at AI-assisted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes the four
mainfailures from #3547. 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 compute: admit SDWA profiles for lowered f16, frexp and conversion ops #3470 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 shader: lower v_sin_f16 and v_cos_f16 in direct Compute DXIL #3300, 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 #3547
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 tests: four native SDWA checks and the profiles note disagree with the translator on main #3547.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