tests: define SENTINEL in native_f16_alu_check #3192
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!3192
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3190"
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?
@Leyukaka on GitHub · 2026-11-27 21:00 UTC · original
Leyukaka:fix-cvt-f16-sentinel→main· +2 −1 · 1 files · 1 commits · merged 2026-11-27 21:37 UTCFollow-up to #3161. Target branch
main.native_cvt_f16_i16_hardwarefails onmain(9e7eab5b). Every conversion matches, then the guard check raisesAttributeError: module 'native_f16_alu_check' has no attribute 'SENTINEL'.tests/native_cvt_f16_i16_check.pyimportsnative_f16_alu_check as Fand compares guard words withF.SENTINEL, but that module defines noSENTINEL; it writes the fill0x69696969inline.Change:
tests/native_f16_alu_check.pydefinesSENTINEL = 0x69696969, the fillnative_store_replayuses for untouched words (memset(..., 0x69, ...)), and uses it for its own expected guard words. The test from #3161 is unchanged. Open PR #3189 addstests/native_fma_f16_check.pywith the sameF.SENTINELcomparison, which this also covers.Tests. The setup was Windows 11 build 26300.9974 with an NVIDIA GeForce RTX 5080 (driver 32.0.16.2101) and DXC from the Windows SDK 10.0.26100, on
main9e7eab5b.native_cvt_f16_i16_irand_controlspass, and_hardwarefails with the error above.native_cvt_f16_i16tests andnative_f16_alu_ir/_hardwarepass.SENTINELto0x69696968fails bothnative_cvt_f16_i16_hardwareandnative_f16_alu_hardware, so both guard checks are effective.AI-assisted.
@KelboLive on GitHub · 2026-11-27 21:13 UTC · original
LGTM. Trivial cleanup: replacing the unused
SENTINELvariable with its literal value. Safe to merge.@R0Y00 on GitHub · 2026-11-27 21:33 UTC · original · approved these changes
Independently reviewed
87ae9622overmaind99e0ae4(tree987c7a67a28624bbe61de3b1c1f1f88d481ecb5d). The0x69696969constant matches the0x69initializer innative_store_replay; the patch is confined to the test module.With the same Release replay binary, the unmodified
mainPython fixture reached its guard check and reproducedAttributeError: module 'native_f16_alu_check' has no attribute 'SENTINEL'. On the candidate I builtcompile_dxil native_store_replay native_compute_ir_dumpand ranctest --test-dir <build> --no-tests=error -j 1 -V -R '^native_(cvt_f16_i16|f16_alu)_'. Debug and Release/O2passed 5/5 each with no skips. The fixed fixture matched 82 conversions across two groups, and the existing controls verified 38 refusals. RTX 4060 Laptop32.0.16.1656, Windows26200.9974, SDK/DXC10.0.26100.0, wave32, debug layer disabled. GitHub Windows, Linux Python and gfx1013 checks passed.