Repository navigation
Description
Verification update · 1 December 2026
#3542 applied the SDWA expectation and profile-note corrections in 2e30cc59. On the a0e126c2 main tree, a local Release rerun passed all four reported cases (native_cvt_f16_i16_ir, native_cvt_f16_i16_controls, native_sdwa_profiles_ir, native_sdwa_profiles_dxil). The first attempt had missing local IR-dumper executables. Building both dumpers and rerunning gave 4 passed, 0 failed, 0 skipped. #3554 continues to track PR preset coverage.
tests: four native SDWA checks and the profiles note disagree with the translator on main
Summary
main at 44a3ad5aa fails four native compute tests, and the reason is the same in all four: they
expect an unimplemented direct SDWA operand profile refusal for programs that #3470 now admits, so the
translator refuses them one gate later, on the destination.
While confirming that, the same investigation found a second and more interesting disagreement: the note
merged with #3470 says v_sin_f16 and v_cos_f16 are "still refused in SDWA", and the test asserts that
refusal, but the translator accepts both when the destination is well formed. The test only passes because
its malformed destination is rejected before the profile check is reached.
Reproduction
In-box dev preset, 44a3ad5aa, NVIDIA GeForce RTX 4070 Ti SUPER (driver 32.0.16.2101):
ctest --preset dev --no-tests=error -R '^native_' -j 4394/415 Test #2680: native_cvt_f16_i16_ir ***Failed 0.20 sec
394/415 Test #2681: native_cvt_f16_i16_controls ***Failed 0.32 sec
409/415 Test #2874: native_sdwa_profiles_ir ***Failed 1.25 sec
411/415 Test #2875: native_sdwa_profiles_dxil ***Failed 0.87 sec
99% tests passed, 4 tests failed out of 415
The remaining failures were capability skips, reported separately.
1. The four failures: expectation versus the destination gate
Every one reports the same pair:
AssertionError: ('unimplemented direct SDWA operand profile', 1,
'native compute +0x0: unsupported SDWA destination modifier\n')
| File | Case | Expected | Actual |
|---|---|---|---|
tests/native_cvt_f16_i16_check.py:212 |
vop1(op, 3, 249) + 0x06060601, for each op in OPS |
unimplemented direct SDWA operand profile |
unsupported SDWA destination modifier |
tests/native_sdwa_profiles_check.py:154 |
refusal case 14, v_sin_f16 (0x60) |
unimplemented direct SDWA operand profile |
unsupported SDWA destination modifier |
0x06060601 puts dst_select = 6, an f32 placement. #3470 admitted these ops as SDWA profiles, so
they pass the profile gate at src/gfx1013_compute_native.cpp:414 and reach the 16-bit destination rule at
src/gfx1013_compute_native.cpp:422 (dst_16 accepts only WORD_0/WORD_1). The translator is therefore
right and the expectation is stale: the program is still refused, but for a narrower and more accurate
reason.
2. v_sin_f16 and v_cos_f16 are accepted, contrary to the note and the test
Reaching the profile gate with a valid destination, the same two ops translate:
v_sin_f16 as written: rc=1 native compute +0x1c: unsupported SDWA destination modifier
v_sin_f16 with WORD_0 dst: rc=0 (translated)
v_cos_f16 with WORD_0 dst: rc=0 (translated)
Measured with out/build/dev/native_compute_ir_dump.exe on 44a3ad5aa. This contradicts both:
docs/experiments/direct-sdwa-profiles.md: "Still refused in SDWA:v_sin_f16/v_cos_f16(no direct
lowering)" — but063d4e1a5("shader: lower v_sin_f16 and v_cos_f16 in direct Compute DXIL") added that
lowering, so the sentence was out of date before#3470repeated it.- refusal case 14, which asserts the refusal and only appears to hold because the program's destination is
invalid.
Why pull-request CI did not catch this
#3470 was green on its branch. The pr preset is a smoke selection (CMakePresets.json, testPresets
pr), and native_* is not in its include list, so these four tests are only evaluated by the full
ctest --preset dev -E '_hardware$' run on main. That is the same blind spot recorded in #3052.
Suggested resolution
These need a decision per case rather than one string replacement, which is why this is an issue and not a
patch:
native_cvt_f16_i16_check.py: theOPSentries are now admitted profiles, so either expect the
destination refusal for thedst_select = 6program, or move the SDWA case into the positive set with a
WORD_0/WORD_1destination and assert the lowered result. The second keeps the coverage meaningful.native_sdwa_profiles_check.pycase 14:v_sin_f16/v_cos_f16are admitted, so the case belongs with
the admitted profiles, not the refusals.docs/experiments/direct-sdwa-profiles.md: correct the "still refused" sentence, since the lowering
exists.
A related report on the first of the two main failures is in #3546: startup_triage_run fails because
#3471 added a refusal literal without classifying it in COMPUTE_DISPATCH_REASONS. That one is
independent of this.
Activity
legacy-code-archaeologist commentedon Nov 30, 2026
I'm taking this; the
v_sin_f16/v_cos_f16lowering is mine (#3300). Plan, following your suggested resolution: move thenative_cvt_f16_i16SDWA cases into the positive set withWORD_0/WORD_1destinations and keep one case that expects the destination refusal fordst_select = 6, movenative_sdwa_profilescase 14 to the admitted profiles, and correct the sentence indocs/experiments/direct-sdwa-profiles.md. Tests and doc only, no translator change.AI-assisted.
legacy-code-archaeologist commentedon Nov 30, 2026
#3542 (merged at
2e30cc59) fixed all four failures and corrected the note, so I closed my #3555 as superseded. From my side this issue can be closed.AI-assisted.