tests: define SENTINEL in native_f16_alu_check #3190
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-27T21:00:52Z.
Follow-up to #3159. 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 #3159 is unchanged. Open PR #3187 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.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-27T21:13:51Z.
LGTM. Trivial cleanup: replacing the unused
SENTINELvariable with its literal value. Safe to merge.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T21:33:46Z.
Review: APPROVED
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.