diff options
| author | JARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com> | 2026-11-24 10:39:58 +0000 |
|---|---|---|
| committer | JARVIX <273200855+jarvixaiassistant-glitch@users.noreply.github.com> | 2026-11-24 10:39:58 +0000 |
| commit | 2da938a92c14879eb608a0f7a8ecbfbc58d95679 (patch) | |
| tree | 27905529ef7597d55ada024802c39111472a5c8c /runtime/test/cpp_unwind_test.cpp | |
| parent | 21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff) | |
rdna2_decode: decode VOP2 0x06 and VOP3 0x106 as v_mac_legacy_f32 on gfx101*
tools/rdna2_decode.py already renamed VOP3 0x140 from v_fma_legacy_f32 to
v_mad_legacy_f32 when mcpu starts with gfx101, but left VOP2 0x06 and VOP3
0x106 unconditionally named v_fmac_legacy_f32 even for the default gfx1013
console target.
Per LLVM 21 VOP2Instructions.td and docs/design.md, VOP2 0x06 and VOP3 0x106
are v_mac_legacy_f32 on gfx101* (translated by rdna2spirv.py) and
v_fmac_legacy_f32 on gfx103* (intentionally rejected as Unsupported).
Decoding them as v_fmac_legacy_f32 on gfx1013 broke end-to-end python
disassembly -> rdna2spirv translation and caused 56 mismatches across LLVM's
gfx10_vop2.txt (18) and gfx10_vop3.txt (38).
Rename VOP2 0x06 and VOP3 0x106 to v_mac_legacy_f32 on gfx101* and add unit
plus end-to-end gfx1013 (translates and evaluates to 8.0) and gfx1030
(rejected as Unsupported) tests in tests/test_rdna2_decode.py.
AI-assisted: yes (JARVIX: Antigravity + DeepSeek V4 Flash + NVIDIA NIM Nemotron-3.5-Lightning & Nemotron-3-Ultra-550B).
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions