compute: accept VCC destination and VCC/EXEC sources in s_brev_b64 and s_bfe_i64/u64 #3409

Manually merged
github merged 1 commit from github-bot/gh-3407 into main 2026-11-29 08:45:34 +00:00 AGit
Owner

@⁠Ammmae0x on GitHub · 2026-11-28 22:42 UTC · original
Ammmae0x:compute/salu-bfe64-brev64-vcc-exec → main · +312 −6 · 5 files · 1 commits · merged 2026-11-29 08:43 UTC

Change

Accept VCC (106) as the destination pair and VCC (106) / EXEC (126) as the 64-bit S0 source pair in s_brev_b64, s_bfe_u64, and s_bfe_i64 in the direct C++ compute path (src/gfx1013_direct_compute.inl, two-line guard change).

  • Destination: (i.dst & 1) || (i.dst > 104 && i.dst != 106) — VCC accepted alongside aligned SGPR pairs; EXEC (126), M0 (124), and odd SGPRs still refused with "invalid " + string(n) + " destination".
  • Source: s0_pair is now (s0 <= 104 && !(s0 & 1)) || s0 == 106 || s0 == 126, reading lo/hi (and S1 for s_bfe_*) before writing i.dst / i.dst + 1, so in-place s_brev_b64 vcc, vcc and s_bfe_u64 vcc, vcc, s26 stay overlap-safe (the handler already reads all inputs first, #3086). s_brev_b64 preserves SCC; s_bfe_u64/s_bfe_i64 set SCC = (D != 0).
  • tests/native_salu_bfe64_brev64_check.py: the three obsolete refusals (VCC as destination for brev/BFE, EXEC as S0 for s_bfe_i64) now refuse M0 (124) instead; the EXEC destination refusal is intact.
  • New tests/native_salu_bfe64_brev64_vcc_exec_check.py + tests/cmake/native_salu_bfe64_brev64_vcc_exec.cmake registering native_salu_bfe64_brev64_vcc_exec_controls and _hardware (SKIP_RETURN_CODE 77, TIMEOUT 60): 16 hardware dispatches (12 wave64, 4 wave32) across all three ops from VCC and EXEC sources, including in-place VCC destinations, cross-word extraction, zero-width (SCC = 0), sign extension (s_bfe_i64 negative vs positive top bit), and SCC preservation on s_brev_b64; 8 negative controls refusing EXEC destination, M0, odd SGPR, and invalid S1, plus 4 reference mutants in controls.
  • docs/experiments/native-direct-salu-bfe64-brev64.md documents the VCC destination and VCC/EXEC sources.

Refs #3226, #2935

Verification

Linux (this host cannot run Windows CTest, compile_dxil, or DXC):

  • Offline harness (/tmp/bfe_harness.py, not in the repo): decodes every case program with tools/disasm_rdna2.py, cross-checks the references against an independent brute-force oracle, verifies the vmove→store plane mapping, SCC priming, and the s0_pair guard logic:
    harness OK: 16 cases x wave32/wave64, brev/bfe encodings, SCC priming, store offsets, references and s0_pair guard all match
  • Spot-mutations, each killed (run on copies in /tmp, never in the worktree): M1 drop s0 == 106 || s0 == 126 from the C++ guard; M2 plane 1 stores the brev result instead of the bfe_u result; M3 eval_bfe ignores signedness; M4 brev SCC primed inverted; M5 in-place op runs first instead of last — spot mutations: 5/5 killed
  • /tmp/pe-env/bin/python -B tests/form_coverage_check.py: form coverage checks passed
  • /tmp/pe-env/bin/python -B tests/docs_links_check.py: Checked 160 Markdown files and 682 links
  • /tmp/pe-env/bin/python -B tests/bidi_controls_check.py: Checked 2582 tracked source, script and build/CI files: no bidirectional controls
  • py_compile on both touched test files: pass
  • Guard expression compiles clean under g++ -std=c++20 -Wall -Wextra

Windows verification still pending (needs a Windows host with MSVC, DXC, and a GPU adapter):

cmake --build --preset dev --target compile_dxil native_store_replay
ctest --preset dev --no-tests=error -R '^(native_salu_bfe64_brev64_vcc_exec_|native_salu_bfe64_brev64_)' -V

Evidence and follow-up

Fixtures are synthetic (hand-built scalar programs with literal control words), generated by the test scripts themselves; no game files involved. Assumptions: operand32/require_numeric accept mask registers 106/107/126/127 (already proven by the merged s_bfm_b64 VCC destination and the s_bcnt/s_ff/s_flbit VCC source changes); symbolic transfer() clears dst/dst+1 generically for _b64/_u64/_i64 suffixes, so no change was needed there. One harness gap found and fixed during the run: the first harness version sliced the wrong split segment when locating the handler (the name s_brev_b64 appears in two name lists before the handler); the harness now uses the third occurrence.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

Windows Verification (b6431bf5)

  • Environment: Windows build 26100, MSVC 19.50.35727.0, adapter NVIDIA GeForce RTX 4050 Laptop GPU (driver 32.0.15.9186, XBOX2WINDOWS_ADAPTER=NVIDIA), D3D12 debug layer off, commit b6431bf59e8c83cbe4ac33ee253acbeef856e90e.
  • cmake --build --preset dev --target compile_dxil native_store_replay -> exit 0
  • cmake --build --preset release --target compile_dxil native_store_replay -> exit 0
  • ctest --preset dev --no-tests=error -R '^(native_salu_bfe64_brev64_vcc_exec_|native_salu_bfe64_brev64_)' --output-on-failure -> 4/4 passed (0 skips)
  • ctest --preset release --no-tests=error -R '^(native_salu_bfe64_brev64_vcc_exec_|native_salu_bfe64_brev64_)' --output-on-failure -> 4/4 passed (0 skips)
  • .\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py -> form coverage checks passed (exit 0)
  • .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py -> Self-test passed. Checked 160 Markdown files and 682 links. (exit 0)
  • .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py -> Self-test passed. Checked 2584 tracked source, script and build/CI files: no bidirectional controls. (exit 0)
# dev preset (4/4 passed, 0 skips)
2752: compiled s_brev_b64 (pure 32-bit DXIL) and all 21 s_brev/s_bfe cases cleanly
1/4 Test #2752: native_salu_bfe64_brev64_controls ............   Passed    1.02 sec
2/4 Test #2753: native_salu_bfe64_brev64_hardware ............   Passed    5.16 sec
2754: compiled s_brev_b64, s_bfe_u64 and s_bfe_i64 from VCC and EXEC sources (including in-place VCC); 8 invalid operand/destination forms refused; 4 reference mutants differ
3/4 Test #2754: native_salu_bfe64_brev64_vcc_exec_controls ...   Passed    0.72 sec
2755: wave64 vcc mixed: results, packed SCC and guards matched
2755: wave64 vcc zero: results, packed SCC and guards matched
2755: wave64 vcc all-ones: results, packed SCC and guards matched
2755: wave64 vcc cross-word: results, packed SCC and guards matched
2755: wave64 vcc sign-ext: results, packed SCC and guards matched
2755: wave64 vcc past-msb neg: results, packed SCC and guards matched
2755: wave64 vcc width-clamp: results, packed SCC and guards matched
2755: wave64 exec mixed: results, packed SCC and guards matched
2755: wave64 exec hi-only: results, packed SCC and guards matched
2755: wave64 exec zero-width: results, packed SCC and guards matched
2755: wave64 vcc inplace brev: results, packed SCC and guards matched
2755: wave64 vcc inplace bfe_u: results, packed SCC and guards matched
2755: wave32 vcc mixed: results, packed SCC and guards matched
2755: wave32 exec past-msb neg: results, packed SCC and guards matched
2755: wave32 vcc inplace bfe_i: results, packed SCC and guards matched
2755: wave32 exec zero-width: results, packed SCC and guards matched
4/4 Test #2755: native_salu_bfe64_brev64_vcc_exec_hardware ...   Passed    3.93 sec
The following tests passed:
	native_salu_bfe64_brev64_controls
	native_salu_bfe64_brev64_hardware
	native_salu_bfe64_brev64_vcc_exec_controls
	native_salu_bfe64_brev64_vcc_exec_hardware
100% tests passed, 0 tests failed out of 4
Total Test time (real) =  10.95 sec

# release preset (4/4 passed, 0 skips)
2752: compiled s_brev_b64 (pure 32-bit DXIL) and all 21 s_brev/s_bfe cases cleanly
1/4 Test #2752: native_salu_bfe64_brev64_controls ............   Passed    0.63 sec
2/4 Test #2753: native_salu_bfe64_brev64_hardware ............   Passed    4.81 sec
2754: compiled s_brev_b64, s_bfe_u64 and s_bfe_i64 from VCC and EXEC sources (including in-place VCC); 8 invalid operand/destination forms refused; 4 reference mutants differ
3/4 Test #2754: native_salu_bfe64_brev64_vcc_exec_controls ...   Passed    0.62 sec
2755: wave64 vcc mixed: results, packed SCC and guards matched
2755: wave64 vcc zero: results, packed SCC and guards matched
2755: wave64 vcc all-ones: results, packed SCC and guards matched
2755: wave64 vcc cross-word: results, packed SCC and guards matched
2755: wave64 vcc sign-ext: results, packed SCC and guards matched
2755: wave64 vcc past-msb neg: results, packed SCC and guards matched
2755: wave64 vcc width-clamp: results, packed SCC and guards matched
2755: wave64 exec mixed: results, packed SCC and guards matched
2755: wave64 exec hi-only: results, packed SCC and guards matched
2755: wave64 exec zero-width: results, packed SCC and guards matched
2755: wave64 vcc inplace brev: results, packed SCC and guards matched
2755: wave64 vcc inplace bfe_u: results, packed SCC and guards matched
2755: wave32 vcc mixed: results, packed SCC and guards matched
2755: wave32 exec past-msb neg: results, packed SCC and guards matched
2755: wave32 vcc inplace bfe_i: results, packed SCC and guards matched
2755: wave32 exec zero-width: results, packed SCC and guards matched
4/4 Test #2755: native_salu_bfe64_brev64_vcc_exec_hardware ...   Passed    3.61 sec
The following tests passed:
	native_salu_bfe64_brev64_controls
	native_salu_bfe64_brev64_hardware
	native_salu_bfe64_brev64_vcc_exec_controls
	native_salu_bfe64_brev64_vcc_exec_hardware
100% tests passed, 0 tests failed out of 4
Total Test time (real) =   9.79 sec
**@⁠Ammmae0x** on GitHub · 2026-11-28 22:42 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3407) `Ammmae0x:compute/salu-bfe64-brev64-vcc-exec` → `main` · +312 −6 · 5 files · 1 commits · merged 2026-11-29 08:43 UTC ## Change Accept `VCC` (`106`) as the destination pair and `VCC` (`106`) / `EXEC` (`126`) as the 64-bit `S0` source pair in `s_brev_b64`, `s_bfe_u64`, and `s_bfe_i64` in the direct C++ compute path (`src/gfx1013_direct_compute.inl`, two-line guard change). - Destination: `(i.dst & 1) || (i.dst > 104 && i.dst != 106)` — `VCC` accepted alongside aligned SGPR pairs; `EXEC` (`126`), `M0` (`124`), and odd SGPRs still refused with `"invalid " + string(n) + " destination"`. - Source: `s0_pair` is now `(s0 <= 104 && !(s0 & 1)) || s0 == 106 || s0 == 126`, reading `lo`/`hi` (and `S1` for `s_bfe_*`) before writing `i.dst` / `i.dst + 1`, so in-place `s_brev_b64 vcc, vcc` and `s_bfe_u64 vcc, vcc, s26` stay overlap-safe (the handler already reads all inputs first, #3086). `s_brev_b64` preserves `SCC`; `s_bfe_u64`/`s_bfe_i64` set `SCC = (D != 0)`. - `tests/native_salu_bfe64_brev64_check.py`: the three obsolete refusals (`VCC` as destination for brev/BFE, `EXEC` as `S0` for `s_bfe_i64`) now refuse `M0` (`124`) instead; the `EXEC` destination refusal is intact. - New `tests/native_salu_bfe64_brev64_vcc_exec_check.py` + `tests/cmake/native_salu_bfe64_brev64_vcc_exec.cmake` registering `native_salu_bfe64_brev64_vcc_exec_controls` and `_hardware` (`SKIP_RETURN_CODE 77`, `TIMEOUT 60`): 16 hardware dispatches (12 wave64, 4 wave32) across all three ops from `VCC` and `EXEC` sources, including in-place `VCC` destinations, cross-word extraction, zero-width (`SCC = 0`), sign extension (`s_bfe_i64` negative vs positive top bit), and `SCC` preservation on `s_brev_b64`; 8 negative controls refusing `EXEC` destination, `M0`, odd SGPR, and invalid `S1`, plus 4 reference mutants in `controls`. - `docs/experiments/native-direct-salu-bfe64-brev64.md` documents the `VCC` destination and `VCC`/`EXEC` sources. Refs #3226, #2935 ## Verification Linux (this host cannot run Windows CTest, `compile_dxil`, or DXC): - Offline harness (`/tmp/bfe_harness.py`, not in the repo): decodes every case program with `tools/disasm_rdna2.py`, cross-checks the references against an independent brute-force oracle, verifies the vmove→store plane mapping, SCC priming, and the `s0_pair` guard logic: `harness OK: 16 cases x wave32/wave64, brev/bfe encodings, SCC priming, store offsets, references and s0_pair guard all match` - Spot-mutations, each killed (run on copies in `/tmp`, never in the worktree): M1 drop `s0 == 106 || s0 == 126` from the C++ guard; M2 plane 1 stores the brev result instead of the bfe_u result; M3 `eval_bfe` ignores signedness; M4 brev SCC primed inverted; M5 in-place op runs first instead of last — `spot mutations: 5/5 killed` - `/tmp/pe-env/bin/python -B tests/form_coverage_check.py`: `form coverage checks passed` - `/tmp/pe-env/bin/python -B tests/docs_links_check.py`: `Checked 160 Markdown files and 682 links` - `/tmp/pe-env/bin/python -B tests/bidi_controls_check.py`: `Checked 2582 tracked source, script and build/CI files: no bidirectional controls` - `py_compile` on both touched test files: pass - Guard expression compiles clean under `g++ -std=c++20 -Wall -Wextra` Windows verification still pending (needs a Windows host with MSVC, DXC, and a GPU adapter): ```powershell cmake --build --preset dev --target compile_dxil native_store_replay ctest --preset dev --no-tests=error -R '^(native_salu_bfe64_brev64_vcc_exec_|native_salu_bfe64_brev64_)' -V ``` ## Evidence and follow-up Fixtures are synthetic (hand-built scalar programs with literal control words), generated by the test scripts themselves; no game files involved. Assumptions: `operand32`/`require_numeric` accept mask registers `106`/`107`/`126`/`127` (already proven by the merged `s_bfm_b64` VCC destination and the `s_bcnt`/`s_ff`/`s_flbit` VCC source changes); symbolic `transfer()` clears `dst`/`dst+1` generically for `_b64`/`_u64`/`_i64` suffixes, so no change was needed there. One harness gap found and fixed during the run: the first harness version sliced the wrong split segment when locating the handler (the name `s_brev_b64` appears in two name lists before the handler); the harness now uses the third occurrence. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted. ### Windows Verification (`b6431bf5`) - **Environment:** Windows build `26100`, MSVC 19.50.35727.0, adapter `NVIDIA GeForce RTX 4050 Laptop GPU` (driver `32.0.15.9186`, `XBOX2WINDOWS_ADAPTER=NVIDIA`), D3D12 debug layer off, commit `b6431bf59e8c83cbe4ac33ee253acbeef856e90e`. - `cmake --build --preset dev --target compile_dxil native_store_replay` -> exit `0` - `cmake --build --preset release --target compile_dxil native_store_replay` -> exit `0` - `ctest --preset dev --no-tests=error -R '^(native_salu_bfe64_brev64_vcc_exec_|native_salu_bfe64_brev64_)' --output-on-failure` -> `4/4` passed (`0` skips) - `ctest --preset release --no-tests=error -R '^(native_salu_bfe64_brev64_vcc_exec_|native_salu_bfe64_brev64_)' --output-on-failure` -> `4/4` passed (`0` skips) - `.\out\pe-env\Scripts\python.exe -B tests/form_coverage_check.py` -> `form coverage checks passed` (exit `0`) - `.\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py` -> `Self-test passed. Checked 160 Markdown files and 682 links.` (exit `0`) - `.\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py` -> `Self-test passed. Checked 2584 tracked source, script and build/CI files: no bidirectional controls.` (exit `0`) ```text # dev preset (4/4 passed, 0 skips) 2752: compiled s_brev_b64 (pure 32-bit DXIL) and all 21 s_brev/s_bfe cases cleanly 1/4 Test #2752: native_salu_bfe64_brev64_controls ............ Passed 1.02 sec 2/4 Test #2753: native_salu_bfe64_brev64_hardware ............ Passed 5.16 sec 2754: compiled s_brev_b64, s_bfe_u64 and s_bfe_i64 from VCC and EXEC sources (including in-place VCC); 8 invalid operand/destination forms refused; 4 reference mutants differ 3/4 Test #2754: native_salu_bfe64_brev64_vcc_exec_controls ... Passed 0.72 sec 2755: wave64 vcc mixed: results, packed SCC and guards matched 2755: wave64 vcc zero: results, packed SCC and guards matched 2755: wave64 vcc all-ones: results, packed SCC and guards matched 2755: wave64 vcc cross-word: results, packed SCC and guards matched 2755: wave64 vcc sign-ext: results, packed SCC and guards matched 2755: wave64 vcc past-msb neg: results, packed SCC and guards matched 2755: wave64 vcc width-clamp: results, packed SCC and guards matched 2755: wave64 exec mixed: results, packed SCC and guards matched 2755: wave64 exec hi-only: results, packed SCC and guards matched 2755: wave64 exec zero-width: results, packed SCC and guards matched 2755: wave64 vcc inplace brev: results, packed SCC and guards matched 2755: wave64 vcc inplace bfe_u: results, packed SCC and guards matched 2755: wave32 vcc mixed: results, packed SCC and guards matched 2755: wave32 exec past-msb neg: results, packed SCC and guards matched 2755: wave32 vcc inplace bfe_i: results, packed SCC and guards matched 2755: wave32 exec zero-width: results, packed SCC and guards matched 4/4 Test #2755: native_salu_bfe64_brev64_vcc_exec_hardware ... Passed 3.93 sec The following tests passed: native_salu_bfe64_brev64_controls native_salu_bfe64_brev64_hardware native_salu_bfe64_brev64_vcc_exec_controls native_salu_bfe64_brev64_vcc_exec_hardware 100% tests passed, 0 tests failed out of 4 Total Test time (real) = 10.95 sec # release preset (4/4 passed, 0 skips) 2752: compiled s_brev_b64 (pure 32-bit DXIL) and all 21 s_brev/s_bfe cases cleanly 1/4 Test #2752: native_salu_bfe64_brev64_controls ............ Passed 0.63 sec 2/4 Test #2753: native_salu_bfe64_brev64_hardware ............ Passed 4.81 sec 2754: compiled s_brev_b64, s_bfe_u64 and s_bfe_i64 from VCC and EXEC sources (including in-place VCC); 8 invalid operand/destination forms refused; 4 reference mutants differ 3/4 Test #2754: native_salu_bfe64_brev64_vcc_exec_controls ... Passed 0.62 sec 2755: wave64 vcc mixed: results, packed SCC and guards matched 2755: wave64 vcc zero: results, packed SCC and guards matched 2755: wave64 vcc all-ones: results, packed SCC and guards matched 2755: wave64 vcc cross-word: results, packed SCC and guards matched 2755: wave64 vcc sign-ext: results, packed SCC and guards matched 2755: wave64 vcc past-msb neg: results, packed SCC and guards matched 2755: wave64 vcc width-clamp: results, packed SCC and guards matched 2755: wave64 exec mixed: results, packed SCC and guards matched 2755: wave64 exec hi-only: results, packed SCC and guards matched 2755: wave64 exec zero-width: results, packed SCC and guards matched 2755: wave64 vcc inplace brev: results, packed SCC and guards matched 2755: wave64 vcc inplace bfe_u: results, packed SCC and guards matched 2755: wave32 vcc mixed: results, packed SCC and guards matched 2755: wave32 exec past-msb neg: results, packed SCC and guards matched 2755: wave32 vcc inplace bfe_i: results, packed SCC and guards matched 2755: wave32 exec zero-width: results, packed SCC and guards matched 4/4 Test #2755: native_salu_bfe64_brev64_vcc_exec_hardware ... Passed 3.61 sec The following tests passed: native_salu_bfe64_brev64_controls native_salu_bfe64_brev64_hardware native_salu_bfe64_brev64_vcc_exec_controls native_salu_bfe64_brev64_vcc_exec_hardware 100% tests passed, 0 tests failed out of 4 Total Test time (real) = 9.79 sec ``` <!-- WIN-VERIFY: passed | sha=b6431bf59e8c83cbe4ac33ee253acbeef856e90e -->
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 22:46:53 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-11-29 04:00 UTC · original · approved these changes

Approve b6431bf5. Reviewed by reading the diff; nothing built or run here.

  • src/gfx1013_direct_compute.inl:3703: VCC (106) is accepted as the destination pair of s_brev_b64/s_bfe_u64/s_bfe_i64. :3706: VCC or EXEC (126) is accepted as the 64-bit S0 pair, with the high word from operand32(i, s0 + 1) at :3720 (107/127, accepted at :180-183; register codes per tools/disasm_rdna2.py:38-51). lo/hi are read at :3717-3724 and the control at :3732, before the writes at :3728-3729 and :3747-3749, so in-place vcc, vcc is safe. EXEC as destination, m0 and odd registers stay refused. Only the two guards change; the arithmetic and SCC lines are untouched and match docs/experiments.md:8930.
  • On main (212d4b5f), tests/native_salu_bfe64_brev64_check.py:194, :198 and :201 assert the three refusals this PR removes; the PR retargets them to m0 at the same lines and keeps the EXEC destination case at :195.
  • Not covered: the 4 "reference mutants" (tests/native_salu_bfe64_brev64_vcc_exec_check.py:229-236) mutate the Python reference, not the C++. By reading, a wrong high word for VCC/EXEC would be caught only by _hardware; _controls checks compilation, the DXIL ops and the 8 refusals. No case uses VCC as destination with EXEC as source.
  • CI: neither new test runs on this PR, since the pr preset filter (CMakePresets.json:51) has no native_salu_*. The non-PR job runs the dev preset with -E '_hardware$' (.github/workflows/windows.yml:498), so the _hardware evidence is the author's run reported in the description (dev and release, 4/4, 0 skips at this head).
  • #3408 changes the same file at @@ -3680 (lines 3680-3689); this PR's hunk is at @@ -3700. The hunks do not overlap and the two PRs share no other file.
  • Nits: ignore_offset_bit5 is threaded through eval_bfe/eval_case (:76-98) but never used as a mutant. The added ctest -R '^native_salu_bfe64_brev64_vcc_exec_' line in docs/experiments/native-direct-salu-bfe64-brev64.md is redundant, because -R '^(native_salu_bfe64_brev64_|...)' already matches the new tests.
**@⁠Leyukaka** on GitHub · 2026-11-29 04:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3407#pullrequestreview-6101329102) · **approved these changes** Approve `b6431bf5`. Reviewed by reading the diff; nothing built or run here. - `src/gfx1013_direct_compute.inl:3703`: VCC (106) is accepted as the destination pair of `s_brev_b64`/`s_bfe_u64`/`s_bfe_i64`. `:3706`: VCC or EXEC (126) is accepted as the 64-bit `S0` pair, with the high word from `operand32(i, s0 + 1)` at `:3720` (107/127, accepted at `:180-183`; register codes per `tools/disasm_rdna2.py:38-51`). `lo`/`hi` are read at `:3717-3724` and the control at `:3732`, before the writes at `:3728-3729` and `:3747-3749`, so in-place `vcc, vcc` is safe. EXEC as destination, `m0` and odd registers stay refused. Only the two guards change; the arithmetic and SCC lines are untouched and match `docs/experiments.md:8930`. - On `main` (212d4b5f), `tests/native_salu_bfe64_brev64_check.py:194`, `:198` and `:201` assert the three refusals this PR removes; the PR retargets them to `m0` at the same lines and keeps the EXEC destination case at `:195`. - Not covered: the 4 "reference mutants" (`tests/native_salu_bfe64_brev64_vcc_exec_check.py:229-236`) mutate the Python reference, not the C++. By reading, a wrong high word for VCC/EXEC would be caught only by `_hardware`; `_controls` checks compilation, the DXIL ops and the 8 refusals. No case uses VCC as destination with EXEC as source. - CI: neither new test runs on this PR, since the `pr` preset filter (`CMakePresets.json:51`) has no `native_salu_*`. The non-PR job runs the `dev` preset with `-E '_hardware$'` (`.github/workflows/windows.yml:498`), so the `_hardware` evidence is the author's run reported in the description (dev and release, 4/4, 0 skips at this head). - #3408 changes the same file at `@@ -3680` (lines 3680-3689); this PR's hunk is at `@@ -3700`. The hunks do not overlap and the two PRs share no other file. - Nits: `ignore_offset_bit5` is threaded through `eval_bfe`/`eval_case` (`:76-98`) but never used as a mutant. The added `ctest -R '^native_salu_bfe64_brev64_vcc_exec_'` line in `docs/experiments/native-direct-salu-bfe64-brev64.md` is redundant, because `-R '^(native_salu_bfe64_brev64_|...)'` already matches the new tests.
github manually merged commit 1cd0719461 into main 2026-11-29 08:45:34 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.