diff --git a/CHANGELOG.md b/CHANGELOG.md index dc8007d6..f789f36c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ remains unsupported. - Extended the read-only RDNA2 planning CLI (`python3 -m qa rdna2`) with family/status filters, compact summaries, Codex-ready manifests under `artifacts/`, active-claim exclusion (family claims exclude those families; path-only claims block overlapping permitted files), coverage reconcile against `semantic_coverage` without inflating counts, and inventory diffs. Covered by `tests/qa/test_rdna2_plan.py`; planning only, no GPU production edits. ### Added -- Added an independent guide-derived oracle for the gfx1030 VOP1 integer forms `v_not_b32`, `v_bfrev_b32`, `v_ffbh_u32`, `v_ffbl_b32`, `v_ffbh_i32` and `v_swap_b32` (`_e32`) in the reference and the second interpreter (752 lane cases, 608 rejections). The decoder and translator do not implement these forms yet, and native Metal agreement is not yet shown. Part of #215. +- Added an independent guide-derived oracle for the gfx1030 VOP1 integer forms `v_not_b32`, `v_bfrev_b32`, `v_ffbh_u32`, `v_ffbl_b32`, `v_ffbh_i32` and `v_swap_b32` (`_e32`) in the reference and the second interpreter (752 lane cases, 610 rejections). The decoder and translator do not implement these forms yet, and native Metal agreement is not yet shown. Part of #215. - Added `python3 -m qa rdna2 rank` to the read-only RDNA2 planner: it groups undeclared gfx1030 forms by the piece of work that would unlock them (an encoding variant of a declared form, a new operand rule, or a new primitive, from XML identity and operand shape only) and ranks the groups by forms per estimated cost, excluding claimed scopes, with `--no-float` to leave out floating-point groups until the FP contract exists (part of #215). - Added authoritative read-only x86-64 CPU inventory CLI (`python3 -m qa cpu-inventory`) over `crates/loader/x86/instructions.toml` via `generate_x86.load`, with opcode-map/prefix/operand summaries, native vs shared-semantic operation partitions from `dbt.rs`, fixture mnemonic evidence and a separate unsupported catalog. Does not count candidates as implemented. Covered by `tests/qa/test_cpu_inventory.py`. - Added typed runtime inventory CLI (`python3 -m qa runtime-inventory`) over `crates/loader/runtime/services.txt`, reporting implemented/partial/stub services separately from API-set aliases and leaving independently-verified empty unless recorded. Covered by `tests/qa/test_runtime_inventory.py`. diff --git a/scripts/test-gpu.sh b/scripts/test-gpu.sh index 1aa9b4c4..820931c9 100755 --- a/scripts/test-gpu.sh +++ b/scripts/test-gpu.sh @@ -53,6 +53,7 @@ timeout 30s cargo test --locked -p xenora-ffi --features gpu-tests --test audio_ # Native Metal known answers of the independent semantic review, including SOP2 scalar ALU # and VOPC compares. cargo test --locked -p xenora-semantic-review --no-run -# Oracles whose translator side has not landed are skipped by name until it does. +# Oracles whose translator side has not landed are skipped by name until it does +# (#215: the PR that translates the forms removes its skip). timeout 120s cargo test --locked -p xenora-semantic-review -- --ignored --nocapture --test-threads=1 \ --skip vop1_integer_forms_match_the_guide_on_native_metal diff --git a/tests/validation/tests/vop1_integer.rs b/tests/validation/tests/vop1_integer.rs index 31726ed5..0db9e76d 100644 --- a/tests/validation/tests/vop1_integer.rs +++ b/tests/validation/tests/vop1_integer.rs @@ -217,7 +217,7 @@ const COUNTS: [(&str, usize); 17] = [ /// supported subset (107-127 and 209-254, with the SDWA and DPP extension /// dword where one belongs); for V_SWAP_B32 every selector 0-255; and for /// all six a read of and a write to a VGPR with a load outstanding. -const REJECTIONS: usize = 5 * (1 + 21 + 46) + 256 + 6 * 2; +const REJECTIONS: usize = 5 * (1 + 21 + 46) + 256 + 2 + 6 * 2; const LITERAL: u32 = 255; const VCC_LO: u32 = 106; @@ -682,8 +682,15 @@ fn rejections() -> Vec<(String, Vec, usize)> { let code = program(&swap_setup, &alu, &[], 2); all.push((format!("{SWAP_NAME} src0 {src0}"), code, swap_offset)); } + // V_SWAP_B32 also writes v0 (the dispatch index) through either operand: + // v0 as SRC0 and v0 as VDST, under full EXEC. + for (dst, src0, what) in [(2, 0, "SRC0"), (0, 2, "VDST")] { + let code = program(&swap_setup, &[vop1(SWAP, dst, vgpr(src0))], &[], 2); + all.push((format!("{SWAP_NAME} v0 as {what}"), code, swap_offset)); + } // v3 with a load into it outstanding (no wait): read as SRC0, then - // written as VDST (the swap also reads it as VDST). + // written as VDST. The swap reads its VDST first, so for it the second + // case is also a read; no supported form writes v3 without reading it. let mut pending = swap_setup.clone(); pending.extend(PENDING_LOAD_V3); let pending_offset = alu_offset(&pending); @@ -691,6 +698,11 @@ fn rejections() -> Vec<(String, Vec, usize)> { for (op, name) in ops.chain([(SWAP, SWAP_NAME)]) { for (dst, src0, what) in [(2, 3, "read"), (3, if op == SWAP { 2 } else { 1 }, "write")] { let code = program(&pending, &[vop1(op, dst, vgpr(src0))], &[], 2); + let what = if op == SWAP && what == "write" { + "VDST read" + } else { + what + }; let label = format!("{name} {what} of v3 with its load outstanding"); all.push((label, code, pending_offset)); }