Shaders: xcl disasm prints VOP3 / VOP3P source and output modifiers (#664) #682

Open
milas6669 wants to merge 1 commit from upstream-pr/687 into main
milas6669 commented 2026-11-24 03:30:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T03:30:01Z.


xcl disasm now prints VOP3/VOP3P source and output modifiers, matching LLVM. Part of #664; EXP/VINTRP is stacked in #706.

The implementation remains xelerb-debug's, with its author and original Claude Opus 5.5 credit preserved. Rebased onto main cbc296ab65a2; the conflict resolution retains main's SDWA compare destination and newer image/SMEM formatting.

What is in it

  • crates/xcl/src/gpu/rdna2.rs: neg/abs, op_sel/op_sel_hi, neg_lo/neg_hi, clamp and omod; VOP3 op_sel only on applicable gfx10 instructions, with no modifiers printed for v_nop.
  • Unit cases and the LLVM corpus comparison: 6,487 VOP3 instructions, 907 with modifiers, zero differences.
  • Disassembly also appears in translated HLSL comments, causing one DXIL cache miss.

Tested

  • Clean head ae103e776e5c765f04a5276add86354980be0433; NVIDIA RTX 3070, driver 621.40, Intel i9-10900KF, Windows 11 Pro 10.0.26200, stable Rust 1.100.0/MSVC, debug build.
  • cargo build --workspace --locked: passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture: 1157 passed, 0 failed, 46 ignored (Cargo counts include tests that report skips).
  • 27 SKIPPED messages, excluded from GPU coverage: 20 wave64 subcases; three per-lane DXIL forms refused (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32); uploads_start_from_each_subresources_state and test_title_draws_with_a_root_signature_under_the_debug_layer lack the debug layer; pso_measurement_compiles_an_exact_synthetic_record needs Developer Mode to disable the driver cache; heap_window_out_of_memory_falls_back_to_the_switch_form lacks heap windows.

Regression run

Clean main (cbc296ab65a2), 60 seconds:

xcl-smoke v1
commit: cbc296ab65a2661a61e3e2da109134bcd5319f60
gpu: NVIDIA GeForce RTX 3070
title: 31c4c1c4
seconds: 60
exit: 0x0
frames shown: 552 (PresentX 553)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 10774 MB

Clean PR head (ae103e776e5c), same title and time:

xcl-smoke v1
commit: ae103e776e5c765f04a5276add86354980be0433
gpu: NVIDIA GeForce RTX 3070
title: 31c4c1c4
seconds: 60
exit: 0x0
frames shown: 1101 (PresentX 1101)
presents per 2 s (last 3): 60 60 43
device removals: 0
crashes: 0
peak commit: 10794 MB

Not tested

  • AMD and wave64 hardware; the skipped cases above.
  • The title run checks regression only: it does not print disassembly. The cold DXIL cache was not measured separately.

AI use

  • Original code: Claude Code / Claude Opus 5.5 (xelerb-debug); original integration and reports: Claude Code / Claude Sonnet 5.5.
  • Rebase/conflict resolution, validation and this update: Codex (GPT-6 family; exact model identifier was not supplied).
<!-- greyfinch-sync:ivall/xcl:issue:5465542622 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687). Originally posted by [milas6669](https://github.com/milas6669) on 2026-11-24T03:30:01Z. --- `xcl disasm` now prints VOP3/VOP3P source and output modifiers, matching LLVM. Part of #664; EXP/VINTRP is stacked in #706. The implementation remains xelerb-debug's, with its author and original Claude Opus 5.5 credit preserved. Rebased onto main `cbc296ab65a2`; the conflict resolution retains main's SDWA compare destination and newer image/SMEM formatting. **What is in it** - `crates/xcl/src/gpu/rdna2.rs`: neg/abs, op_sel/op_sel_hi, neg_lo/neg_hi, clamp and omod; VOP3 op_sel only on applicable gfx10 instructions, with no modifiers printed for v_nop. - Unit cases and the LLVM corpus comparison: 6,487 VOP3 instructions, 907 with modifiers, zero differences. - Disassembly also appears in translated HLSL comments, causing one DXIL cache miss. **Tested** - Clean head `ae103e776e5c765f04a5276add86354980be0433`; NVIDIA RTX 3070, driver 621.40, Intel i9-10900KF, Windows 11 Pro 10.0.26200, stable Rust 1.100.0/MSVC, debug build. - `cargo build --workspace --locked`: passed. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocapture`: 1157 passed, 0 failed, 46 ignored (Cargo counts include tests that report skips). - 27 SKIPPED messages, excluded from GPU coverage: 20 wave64 subcases; three per-lane DXIL forms refused (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32`); `uploads_start_from_each_subresources_state` and `test_title_draws_with_a_root_signature_under_the_debug_layer` lack the debug layer; `pso_measurement_compiles_an_exact_synthetic_record` needs Developer Mode to disable the driver cache; `heap_window_out_of_memory_falls_back_to_the_switch_form` lacks heap windows. **Regression run** Clean main (`cbc296ab65a2`), 60 seconds: ``` xcl-smoke v1 commit: cbc296ab65a2661a61e3e2da109134bcd5319f60 gpu: NVIDIA GeForce RTX 3070 title: 31c4c1c4 seconds: 60 exit: 0x0 frames shown: 552 (PresentX 553) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 10774 MB ``` Clean PR head (`ae103e776e5c`), same title and time: ``` xcl-smoke v1 commit: ae103e776e5c765f04a5276add86354980be0433 gpu: NVIDIA GeForce RTX 3070 title: 31c4c1c4 seconds: 60 exit: 0x0 frames shown: 1101 (PresentX 1101) presents per 2 s (last 3): 60 60 43 device removals: 0 crashes: 0 peak commit: 10794 MB ``` **Not tested** - AMD and wave64 hardware; the skipped cases above. - The title run checks regression only: it does not print disassembly. The cold DXIL cache was not measured separately. **AI use** - Original code: Claude Code / Claude Opus 5.5 (xelerb-debug); original integration and reports: Claude Code / Claude Sonnet 5.5. - Rebase/conflict resolution, validation and this update: Codex (GPT-6 family; exact model identifier was not supplied).
MesshM commented 2026-11-24 07:05:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T03:42:56Z.


Test run of 9e6a5cc9397df8058a622147391bdbe0f1f88d59 on AMD RDNA4. I merged it onto current main 91f9a5e locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 695 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 655 passed, 0 failed, 21 ignored
  • 0 SKIPPED; vop3_source_and_output_modifiers, vop3p_modifiers and llvm_gfx10_vop3_modifiers pass.

Review: NEG / ABS print as -|v| on float sources only (integer sources and v_ldexp's exponent ignore them), then clamp, then mul:2 / mul:4 / div:2, which is the order llvm-mc uses. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7121352406 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/687#issuecomment-7121352406). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T03:42:56Z. --- Test run of `9e6a5cc9397df8058a622147391bdbe0f1f88d59` on AMD RDNA4. I merged it onto current `main` `91f9a5e` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **695 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 655 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `vop3_source_and_output_modifiers`, `vop3p_modifiers` and `llvm_gfx10_vop3_modifiers` pass. **Review:** NEG / ABS print as `-|v|` on float sources only (integer sources and `v_ldexp`'s exponent ignore them), then `clamp`, then `mul:2` / `mul:4` / `div:2`, which is the order `llvm-mc` uses. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
towiice commented 2026-11-24 07:06:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by towiice on 2026-11-24T03:48:04Z.


Independent check of 9e6a5cc9397df8058a622147391bdbe0f1f88d59 (PR head), run as is.

Tested

  • NVIDIA GeForce GTX 1650 SUPER, Windows 11 build 26300, Rust 1.98.1 x86_64-pc-windows-gnullvm (llvm-mingw 20261117), debug
  • cargo test -p xcl --lib rdna2: 12 passed, 0 failed, 1 ignored (vop3_source_and_output_modifiers, vop3p_modifiers and llvm_gfx10_vop3_modifiers among them)
  • I only read the diff otherwise; I found no problem in it.

Not tested

  • the rest of the suite on this PR, the retail title, scripts/smoke.ps1, MSVC, AMD
  • the modifiers() helper in llvm_gfx10_vop3_modifiers keeps a word by its first character (- followed by v/s/t/e/m) or by name; I did not check whether a negated inline constant or a register name outside those letters would slip through. This is a question, not a finding.

AI use

  • Claude Code (Claude Sonnet 5.5) ran the tests and wrote this comment.
<!-- greyfinch-sync:ivall/xcl:comment:7121434742 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/687#issuecomment-7121434742). Originally posted by [towiice](https://github.com/towiice) on 2026-11-24T03:48:04Z. --- Independent check of `9e6a5cc9397df8058a622147391bdbe0f1f88d59` (PR head), run as is. **Tested** - NVIDIA GeForce GTX 1650 SUPER, Windows 11 build 26300, Rust 1.98.1 `x86_64-pc-windows-gnullvm` (llvm-mingw 20261117), debug - `cargo test -p xcl --lib rdna2`: 12 passed, 0 failed, 1 ignored (`vop3_source_and_output_modifiers`, `vop3p_modifiers` and `llvm_gfx10_vop3_modifiers` among them) - I only read the diff otherwise; I found no problem in it. **Not tested** - the rest of the suite on this PR, the retail title, `scripts/smoke.ps1`, MSVC, AMD - the `modifiers()` helper in `llvm_gfx10_vop3_modifiers` keeps a word by its first character (`-` followed by `v`/`s`/`t`/`e`/`m`) or by name; I did not check whether a negated inline constant or a register name outside those letters would slip through. This is a question, not a finding. **AI use** - Claude Code (Claude Sonnet 5.5) ran the tests and wrote this comment.
lordon1a commented 2026-11-24 07:06:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by lordon1a on 2026-11-24T03:58:15Z.


Independent test report on 9e6a5cc:

Tested

  • Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver 616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), rustc 1.100.0 (x86_64-pc-windows-gnullvm), debug build, DXC 1.9.2609.5 (01b62ad4)
  • Command: cargo test -p xcl --lib gpu::rdna2::tests -- --nocapture
  • Result: 12 passed, 0 failed, 0 ignored in 0.34s (vop3_source_and_output_modifiers, vop3p_modifiers, and llvm_gfx10_corpus 6487 VOP3 / 907 with modifiers all ok)

Not tested

  • AMD / wave64, Intel GPU, retail title

AI use

  • Antigravity (Google DeepMind agent) — fetched 9e6a5cc in a detached worktree, audited the diff, ran the test, and posted this report.
<!-- greyfinch-sync:ivall/xcl:comment:7121587431 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/687#issuecomment-7121587431). Originally posted by [lordon1a](https://github.com/lordon1a) on 2026-11-24T03:58:15Z. --- Independent test report on `9e6a5cc`: **Tested** - Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver `616.64`, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200), `rustc 1.100.0` (`x86_64-pc-windows-gnullvm`), debug build, DXC `1.9.2609.5` (`01b62ad4`) - Command: `cargo test -p xcl --lib gpu::rdna2::tests -- --nocapture` - Result: **12 passed, 0 failed, 0 ignored** in `0.34s` (`vop3_source_and_output_modifiers`, `vop3p_modifiers`, and `llvm_gfx10_corpus` 6487 VOP3 / 907 with modifiers all ok) **Not tested** - AMD / wave64, Intel GPU, retail title **AI use** - Antigravity (Google DeepMind agent) — fetched `9e6a5cc` in a detached worktree, audited the diff, ran the test, and posted this report.
raylitebull commented 2026-11-25 02:08:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:12:08Z.


Both AMD (RX 9060 XT) and NVIDIA (GTX 1650 SUPER, RTX 3070 Ti) verification look solid on bb42ab3. Please rebase onto main to resolve the current rdna2.rs merge conflict so Build and test (Windows, no GPU) can run cleanly.

<!-- greyfinch-sync:ivall/xcl:comment:7149308036 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7149308036). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T01:12:08Z. --- Both AMD (RX 9060 XT) and NVIDIA (GTX 1650 SUPER, RTX 3070 Ti) verification look solid on `bb42ab3`. Please rebase onto `main` to resolve the current `rdna2.rs` merge conflict so `Build and test (Windows, no GPU)` can run cleanly.
JJAutoCompare commented 2026-11-25 07:05:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:10:37Z.


Empirical test report (ae103e77)

PR #687, commit ae103e776e5c765f04a5276add86354980be0433.

Hardware / environment

  • Windows x64, build 26200, on an AMD Family 23 Model 113 Stepping 0 CPU.
  • Rust 1.100.0 (0ef1bc386 2026-11-09) with the unoptimized Cargo test profile. Installed DXC reported 1.9.2609.5 (01b62ad47).
  • The focused run used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1. Both commands ran directly, outside Invoke-ArcTest.ps1, with zero Arc GPU mutex hold.

Commands and results

  • cargo test --workspace --no-run exited 0 and built the workspace test executables.
  • cargo test -p xcl --lib -- --nocapture --exact gpu::rdna2::tests::vop3_source_and_output_modifiers gpu::rdna2::tests::vop3p_modifiers gpu::rdna2::tests::llvm_gfx10_vop3_modifiers exited 0 with 3 passed, 0 failed, 0 ignored, and 0 SKIPPED lines. The filter excluded 1,124 other library tests.

Observed behavior

  • The VOP3 unit test asserted exact disassembly text for source negation and absolute value, mul:4, clamp, and operand selectors, including v_permlane16_b32.
  • The VOP3P unit test checked packed operand selectors, low and high negation, clamp, omission of the default high selector, and FMA_MIX source negation and absolute value.
  • The checked-in LLVM gfx10 fixture comparison examined 6487 decoded VOP3-family instructions, including 907 with modifiers, and found 0 modifier mismatches. All three tests exercised CPU encoding, decoding, or formatting.

Not tested

The full GPU workspace suite and game smoke runs were omitted.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr687-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7154520356 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7154520356). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:10:37Z. --- ### Empirical test report (ae103e77) PR #687, commit `ae103e776e5c765f04a5276add86354980be0433`. **Hardware / environment** - Windows x64, build 26200, on an AMD Family 23 Model 113 Stepping 0 CPU. - Rust `1.100.0 (0ef1bc386 2026-11-09)` with the unoptimized Cargo test profile. Installed DXC reported `1.9.2609.5 (01b62ad47)`. - The focused run used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. Both commands ran directly, outside `Invoke-ArcTest.ps1`, with zero Arc GPU mutex hold. **Commands and results** - `cargo test --workspace --no-run` exited 0 and built the workspace test executables. - `cargo test -p xcl --lib -- --nocapture --exact gpu::rdna2::tests::vop3_source_and_output_modifiers gpu::rdna2::tests::vop3p_modifiers gpu::rdna2::tests::llvm_gfx10_vop3_modifiers` exited 0 with 3 passed, 0 failed, 0 ignored, and 0 `SKIPPED` lines. The filter excluded 1,124 other library tests. **Observed behavior** - The VOP3 unit test asserted exact disassembly text for source negation and absolute value, `mul:4`, clamp, and operand selectors, including `v_permlane16_b32`. - The VOP3P unit test checked packed operand selectors, low and high negation, clamp, omission of the default high selector, and FMA_MIX source negation and absolute value. - The checked-in LLVM gfx10 fixture comparison examined 6487 decoded VOP3-family instructions, including 907 with modifiers, and found 0 modifier mismatches. All three tests exercised CPU encoding, decoding, or formatting. **Not tested** The full GPU workspace suite and game smoke runs were omitted. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr687-focused.log and published.
luckyteagirl commented 2026-11-25 07:05:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T06:50:32Z.


Independent Windows check of exact PR head ae103e776e5c765f04a5276add86354980be0433, prompted by the current-head report request in #1607.

Tested

  • Windows 11 build 26200; Ryzen 9 5980HX; RX 6800M driver 30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. These decoder/formatter tests run on the CPU; they do not exercise the GPU.
  • XCL_REQUIRE_GPU=0, XCL_DIRECT_DXIL=0; cargo test --locked -p xcl --lib -j 2 gpu::rdna2::tests -- --test-threads=1 --show-output: 20 passed, 0 failed, 0 ignored; 0 SKIPPED. The VOP3 and VOP3P modifier tests passed. The LLVM gfx10 VOP3 fixture reported 6,487 instructions, 907 with modifiers, 0 differences.

This is an exact-head focused test. I did not run the full GPU workspace suite, the CLI disassembler end to end, or a title smoke comparison for this PR.

AI-assisted checkout, testing, log verification, and report drafting with OpenAI Codex (GPT-6). No game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7155214696 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7155214696). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-25T06:50:32Z. --- Independent Windows check of exact PR head `ae103e776e5c765f04a5276add86354980be0433`, prompted by the current-head report request in #1607. **Tested** - Windows 11 build 26200; Ryzen 9 5980HX; RX 6800M driver `30.0.13002.13003`; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. These decoder/formatter tests run on the CPU; they do not exercise the GPU. - `XCL_REQUIRE_GPU=0`, `XCL_DIRECT_DXIL=0`; `cargo test --locked -p xcl --lib -j 2 gpu::rdna2::tests -- --test-threads=1 --show-output`: **20 passed, 0 failed, 0 ignored; 0 SKIPPED**. The VOP3 and VOP3P modifier tests passed. The LLVM gfx10 VOP3 fixture reported **6,487 instructions, 907 with modifiers, 0 differences**. This is an exact-head focused test. I did not run the full GPU workspace suite, the CLI disassembler end to end, or a title smoke comparison for this PR. AI-assisted checkout, testing, log verification, and report drafting with OpenAI Codex (GPT-6). No game data was used.
DavidM1911 commented 2026-11-25 12:06:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:06:12Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7161922241 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7161922241). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T12:06:12Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
throny commented 2026-11-28 16:26:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T16:26:33Z.


merge-check claim
head: ae103e776e

<!-- greyfinch-sync:ivall/xcl:comment:7242245987 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7242245987). Originally posted by [throny](https://github.com/throny) on 2026-11-28T16:26:33Z. --- merge-check claim head: ae103e776e5c765f04a5276add86354980be0433
throny commented 2026-11-28 16:48:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T16:48:33Z.


merge-check
base: db3921dc
head: ae103e776e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2148 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at db3921dc: 2145 passed, 0 failed, 48 ignored.
review: no blocking finding; all hunks read. The PR's base is older than #791 (the DPP modifiers); by reading, the two do not overlap, and the disassembler tests pass on the merged tree, which has both. Minor: for an encoding that has a negate field but no absolute-value field, a negated source is printed without its minus sign (the corpus has no such line, so no test sees it). Open from the thread and unanswered: the test's helper skips negated inline constants. #706 is stacked on this PR and goes after it.
performance: none at run time. It changes a translator source and the text goes into the generated shader comments: every tester re-translates all shaders once.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7242528994 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7242528994). Originally posted by [throny](https://github.com/throny) on 2026-11-28T16:48:33Z. --- merge-check base: db3921dc head: ae103e776e5c765f04a5276add86354980be0433 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2148 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at db3921dc: 2145 passed, 0 failed, 48 ignored. review: no blocking finding; all hunks read. The PR's base is older than #791 (the DPP modifiers); by reading, the two do not overlap, and the disassembler tests pass on the merged tree, which has both. Minor: for an encoding that has a negate field but no absolute-value field, a negated source is printed without its minus sign (the corpus has no such line, so no test sees it). Open from the thread and unanswered: the test's helper skips negated inline constants. #706 is stacked on this PR and goes after it. performance: none at run time. It changes a translator source and the text goes into the generated shader comments: every tester re-translates all shaders once. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
jsalzy commented 2026-11-30 02:17:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jsalzy on 2026-11-30T02:17:49Z.


merge-check claim
head: ae103e776e

<!-- greyfinch-sync:ivall/xcl:comment:7266880662 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7266880662). Originally posted by [jsalzy](https://github.com/jsalzy) on 2026-11-30T02:17:49Z. --- merge-check claim head: ae103e776e5c765f04a5276add86354980be0433
jsalzy commented 2026-11-30 02:31:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jsalzy on 2026-11-30T02:31:26Z.


merge-check
base: 9335bc0d86
head: ae103e776e
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2804 passed, 1 failed, 50 ignored; SKIPPED: 28 (22 no wave64 on this GPU; 3 per-lane form refused (#1426 semantics); 2 no heap windows (opt-in XCL_HEAP_WINDOWS=1); 1 driver cache cannot be disabled without Windows Developer Mode); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (standin.rs:459, left (0, 1, 1), right (0, 0, 1)), fails on base too: main alone at 9335bc0 gives 2801 passed, 1 failed (same test, same assertion), 50 ignored. The PR's three new tests (vop3_source_and_output_modifiers, vop3p_modifiers, llvm_gfx10_vop3_modifiers) pass.
review: no blocking finding; whole diff read (one file, text output only). Source neg / abs are added only where the encoding has an ABS field (VOP3) or for FMA_MIX (NEG_HI as abs), so SDWA and DPP sources, which main's own sdwa/dpp formatting already decorates, are not decorated twice; the trailing op_sel / op_sel_hi / neg_lo / neg_hi / clamp / omod words are printed only for plain VOP3 / VOP3P encodings, the default op_sel_hi (all ones, zeros for FMA_MIX) is left out as LLVM does, and v_nop's unused bits (the console compilers' shader hash) are not read as modifiers. llvm_gfx10_vop3_modifiers checks the modifier words of every VOP3 instruction in LLVM's gfx10 corpus files in the repo and passes here. rdna2::format is used by xcl disasm, the benches and translator error messages, so nothing a title runs changes. #706 (open) is stacked on this commit; it adds EXP / VINTRP text on top and is not a duplicate. Minor: XCL still names the wave32 carry mask vcc where LLVM prints vcc_lo (noted in the test, not from this PR).
performance: none: text formatting for disassembly and error messages only.
verdict: safe to merge
hardware / tool and model: RTX 4070 SUPER 12 GB (621.24 / 32.0.16.2124), Ryzen 7 7800X3D, 32 GB, Windows 11 Pro 25H2 26200.9974, Rust 1.100.0, debug / Claude app (Claude Opus 5.5): merge, build and suite run on this PC with git and cargo only; diff review by Claude Opus 5.5.

<!-- greyfinch-sync:ivall/xcl:comment:7267080954 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7267080954). Originally posted by [jsalzy](https://github.com/jsalzy) on 2026-11-30T02:31:26Z. --- merge-check base: 9335bc0d86dbdc17c0e322bca617f35375b3e289 head: ae103e776e5c765f04a5276add86354980be0433 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2804 passed, 1 failed, 50 ignored; SKIPPED: 28 (22 no wave64 on this GPU; 3 per-lane form refused (#1426 semantics); 2 no heap windows (opt-in XCL_HEAP_WINDOWS=1); 1 driver cache cannot be disabled without Windows Developer Mode); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (standin.rs:459, left (0, 1, 1), right (0, 0, 1)), fails on base too: main alone at 9335bc0 gives 2801 passed, 1 failed (same test, same assertion), 50 ignored. The PR's three new tests (vop3_source_and_output_modifiers, vop3p_modifiers, llvm_gfx10_vop3_modifiers) pass. review: no blocking finding; whole diff read (one file, text output only). Source neg / abs are added only where the encoding has an ABS field (VOP3) or for FMA_MIX (NEG_HI as abs), so SDWA and DPP sources, which main's own sdwa/dpp formatting already decorates, are not decorated twice; the trailing op_sel / op_sel_hi / neg_lo / neg_hi / clamp / omod words are printed only for plain VOP3 / VOP3P encodings, the default op_sel_hi (all ones, zeros for FMA_MIX) is left out as LLVM does, and v_nop's unused bits (the console compilers' shader hash) are not read as modifiers. llvm_gfx10_vop3_modifiers checks the modifier words of every VOP3 instruction in LLVM's gfx10 corpus files in the repo and passes here. rdna2::format is used by xcl disasm, the benches and translator error messages, so nothing a title runs changes. #706 (open) is stacked on this commit; it adds EXP / VINTRP text on top and is not a duplicate. Minor: XCL still names the wave32 carry mask vcc where LLVM prints vcc_lo (noted in the test, not from this PR). performance: none: text formatting for disassembly and error messages only. verdict: safe to merge hardware / tool and model: RTX 4070 SUPER 12 GB (621.24 / 32.0.16.2124), Ryzen 7 7800X3D, 32 GB, Windows 11 Pro 25H2 26200.9974, Rust 1.100.0, debug / Claude app (Claude Opus 5.5): merge, build and suite run on this PC with git and cargo only; diff review by Claude Opus 5.5.
Foniass commented 2026-12-01 03:57:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:57:28Z.


Triage (#1607) – head ae103e7

#706 contains this commit (it is stacked on this PR); no other open or merged PR prints VOP3 / VOP3P modifiers in xcl disasm, and main does not have it yet.
One gap in rdna2.rs:with_source_modifiers: VOP3B (VOP3_SDST_ENC) has a NEG field but no ABS, so the function returns early and a negated source of v_div_scale_f32/f64 or the carry ops prints without its - (the LLVM corpus test has no such line, so it does not catch it).
The PR conflicts with main and needs a rebase.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300232917 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/687#issuecomment-7300232917). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:57:28Z. --- **Triage (#1607)** – head ae103e7 #706 contains this commit (it is stacked on this PR); no other open or merged PR prints VOP3 / VOP3P modifiers in `xcl disasm`, and main does not have it yet. One gap in `rdna2.rs:with_source_modifiers`: VOP3B (`VOP3_SDST_ENC`) has a NEG field but no ABS, so the function returns early and a negated source of `v_div_scale_f32/f64` or the carry ops prints without its `-` (the LLVM corpus test has no such line, so it does not catch it). The PR conflicts with main and needs a rebase. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/687:upstream-pr/687'
git switch 'upstream-pr/687'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/687'
git switch 'upstream-pr/687'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/687'
git switch 'upstream-pr/687'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/687'
git switch 'main'
git merge --squash 'upstream-pr/687'
git switch 'main'
git merge --ff-only 'upstream-pr/687'
git switch 'main'
git merge 'upstream-pr/687'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!682
No description provided.