tests: record form coverage for eight merged compute_store_aot slices #2123
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2131"
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 henriazz10 on 2026-11-25T01:14:50Z.
Change
Refs #721. Record accepted instruction opcodes via
FORM_COVERAGE_RECORDfor eight mergedcompute_store_aotslices intests/compute_store_check.pyand wire theirENVIRONMENTproperties inCMakeLists.txt:draw-mbcnt(compute_store_aot_mbcnt_${adapter})draw-bcnt-exec(compute_store_aot_bcnt_exec_${adapter})draw-writelane(compute_store_aot_writelane_${adapter})draw-ff1-exec(compute_store_aot_ff1_exec_${adapter})draw-cvt-u32-f32(compute_store_aot_cvt_u32_f32_${adapter})draw-vadd_nc_i32(compute_store_aot_vadd_nc_i32_${adapter})draw-bfe(compute_store_aot_bfe_${adapter})draw-salu_i32(compute_store_aot_salu_i32_${adapter})After each draw passes, the test writes the sorted first word of every non-empty line in the translated fixture to
FORM_COVERAGE_RECORD.Other
compute_store_aottests inmainwhose CTest entries still lackFORM_COVERAGE_RECORD(not modified here):compute_store_aot_${adapter}compute_store_aot_scratch_base_${adapter}compute_store_aot_dpp_${adapter}compute_store_aot_readlane_${adapter}compute_store_aot_guard_read_${adapter}compute_store_aot_f32_${adapter}compute_store_aot_ff1_scalar_${adapter}compute_store_aot_alu_minmax3_${adapter}compute_store_aot_alu_med3_${adapter}compute_store_aot_alu_xor3_${adapter}compute_store_aot_alu_mad_i24_${adapter}compute_store_aot_alu_cvt_pk_u8_${adapter}compute_store_aot_salu_absdiff_${adapter}compute_store_aot_gfx1013_image_store_${adapter}compute_store_aot_lane_mask_${adapter}compute_store_aot_mubuf_store_format_xyz_${adapter}compute_store_aot_descriptor_store_format_${adapter}Forms expected to turn green in
tools/form_coverage.pyfrom these six slices (when run under CTest withFORM_COVERAGE_RECORD):v_mbcnt_lo_u32_b32,v_mbcnt_hi_u32_b32s_bcnt1_i32_b32v_writelane_b32s_ff1_i32_b32,s_ff1_i32_b64v_cvt_u32_f32_e32v_add_nc_i32,v_sub_nc_i32Verification
Commit
f2697409, on84ce2942. Windows 11 build 26300, DXC 10.0.26100.0, Python 3.12, debug layer enabled.All four exited 0 (
form coverage checks passed,Checked 18 Markdown files and 396 links.,Checked 1428 tracked source, script and build/CI files: no bidirectional controls.).Draws run with
FORM_COVERAGE_RECORDset to a temporary file:draw-mbcntcompared_words=320 mismatches=0,debug_errors=0buffer_store_dwordx3,s_endpgm,s_load_dwordx4,s_mov_b32,s_waitcnt,v_lshl_add_u32,v_mbcnt_hi_u32_b32,v_mbcnt_lo_u32_b32draw-bcnt-execcompared_words=320 mismatches=0,debug_errors=0buffer_store_dword,s_bcnt1_i32_b32,s_endpgm,s_load_dwordx4,s_mov_b32,s_waitcnt,v_lshl_add_u32,v_mad_u32_u24draw-writelanecompared_words=320 mismatches=0,debug_errors=0buffer_store_dword,s_endpgm,s_load_dwordx4,s_mov_b32,s_waitcnt,v_add_nc_u32_e32,v_lshl_add_u32,v_writelane_b32draw-ff1-execcompared_words=320 mismatches=0,debug_errors=0buffer_store_dword,s_add_u32,s_endpgm,s_ff1_i32_b32,s_ff1_i32_b64,s_load_dwordx4,s_mov_b32,s_waitcnt,v_lshl_add_u32,v_mad_u32_u24draw-cvt-u32-f32compared_words=320 mismatches=0,debug_errors=0buffer_store_dwordx4,s_endpgm,s_load_dwordx4,s_mov_b32,s_waitcnt,v_add_nc_u32_e32,v_cvt_u32_f32_e32,v_lshl_add_u32,v_mul_lo_u32draw-vadd_nc_i32compared_words=320 mismatches=0,debug_errors=0buffer_store_dword,s_endpgm,s_load_dwordx4,s_mov_b32,s_waitcnt,v_add_nc_i32,v_lshl_add_u32,v_sub_nc_i32Verification (commit
a13f469b, on08c8208f)Each draw was run on WARP with
FORM_COVERAGE_RECORDset to a temporary file. Every run exited 0 withmismatches=0. The records list these 14 forms:draw-mbcntv_mbcnt_lo_u32_b32,v_mbcnt_hi_u32_b32draw-bcnt-execs_bcnt1_i32_b32draw-writelanev_writelane_b32draw-ff1-execs_ff1_i32_b32,s_ff1_i32_b64draw-cvt-u32-f32v_cvt_u32_f32_e32draw-vadd_nc_i32v_add_nc_i32,v_sub_nc_i32draw-bfes_bfe_u32,s_bfe_i32draw-salu_i32s_add_i32,s_sub_i32,s_abs_i32python -B tests/form_coverage_check.pypasses, andgit diff --checkis clean. The change only adds the record after each draw's existing checks, plus the CTestENVIRONMENTproperty. No test logic changes.Checklist
AI-assisted. Gemini 4 Hydrogen (Antigravity CLI) wrote the change and ran the checks; Claude Code reviewed it.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T01:36:49Z.
I resolved the CMake overlap with the merged add-with-carry fixture and kept its registration and coverage output. On Windows WARP all eight updated fixtures passed and produced separate, nonempty coverage records.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:04:53Z.
Review: COMMENTED
Review of head
6a76aa6d6f.Result: 0 P1, 0 P2.
What I checked
FORM_COVERAGE_RECORDblocks intests/compute_store_check.py(mbcnt, bcnt_exec, writelane, ff1_exec, cvt_u32_f32, vadd_nc_i32, bfe, salu_i32) follow the same pattern as the existing record-mode tests. They run only after the readback and mutation checks pass, so only accepted programs are recorded.CMakeLists.txtadds oneENVIRONMENT FORM_COVERAGE_RECORD=...per test, with unique names matching<build>/form_coverage/<test>.txt. Each of the 8 slices appears once.Commands executed locally (Linux)
python3 -B tests/docs_links_check.py: Self-test passed, 398 links okpython3 -B tests/bidi_controls_check.py: 1439 files, no bidi controlsgit diff --check origin/main...HEAD: cleanMutation (record logic)
line.split()[0]withline.split()[-1]in the record logic, applied to the 8 program lists and compared withdocs/coverage/gfx1013.tsv. The real code yields 24 distinct mnemonics that match the reference. The mutant yields 1, so the mutation is detected by the coverage measurement.tools/form_coverage.py. This is the same as the other record-mode tests, not a blocker.Windows Server 2025 (WARP),
x2w_pipe.py win2025 2131 --scope direct --targets offscreen_check --regex compute_store_aot_ --py-checks tests/form_coverage_check.py--preset dev): 130/130 passed--preset release): 130/130 passedtests/form_coverage_check.py: okBuild and test on Windows: SUCCESSAI-assisted; commands listed were executed locally.