diff options
| author | CLHelper <359823989+CLHelper@users.noreply.github.com> | 2026-11-22 16:48:32 +0000 |
|---|---|---|
| committer | CLHelper <359823989+CLHelper@users.noreply.github.com> | 2026-11-22 18:11:43 +0000 |
| commit | ab5556f8c9d2ed2ce5eaed5d72050d77d980e697 (patch) | |
| tree | cb5fcc928d75ff293d8fec6f7d52996ed0aa5817 /runtime/test/gameinput_test.cpp | |
| parent | ec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff) | |
int_hw_probe: measure v_bfe_u32/v_bfe_i32 past bit 31 on RDNA2 (gfx1036)
The translator cuts a bitfield extract at bit 31 (bfe_width) and reads offset
and width from bits [4:0], but for the VALU form this rested on gfx1150 s_bfe
runs and LLVM's v_bfe fold; RDNA2 was unmeasured.
A new valu_bfe_past31 group in tools/int_hw_probe.py runs four 4-word cases
natively (VGPR, inline-constant and literal operands): offset + width > 32,
the sign of a field cut at bit 31, offset/width bits above [4:0], width 0.
On an AMD Radeon 610M (gfx1036) wave32 and wave64 give the same words and
all four cases match the translator, so no translator change is needed.
The measured words are pinned on the CPU in tests/test_int_hw_probe.py, the
contract table gets a v_bfe row, and the bfe_width docstring no longer says
RDNA2 is unmeasured.
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions