67 programs for v_cvt_pknorm_i16/u16_f16 and v_cvt_norm_i16/u16_f16 (near-ties,
saturation, NaN, op_sel on the pk forms, neg/abs) run natively on gfx1036 and
compared with the translator: all bit-identical, wave32 and wave64. The two
design.md rows no longer say not GPU-verified.
AI-assisted.
- Clarify RDNA2 ISA status: GFX10.3 dropped reversed 16-bit integer subtraction (v_subrev_nc_u16 / v_subrev_nc_i16 do not exist on hardware; v_subrev_f16 is the only 16-bit reverse subtract opcode).
- In tools/rdna2spirv.py, correctly identify VOP3 encoding for 16-bit integer ops when 32-bit literal operands extend the instruction to 12 bytes, preserving the untouched destination half.
- Guard against non-VGPR destination when op_sel writes to destination high half.
- In tools/int_hw_probe.py, add v_add_sub_nc_i16_clamp covering signed saturation to [-32768, 32767], op_sel source selection, and untouched half preservation.
- In tests/semantic/test_alu_subrev_f16.py, add test_vop3_omod_and_clamp.
- In tests/semantic/test_valu_add_sub_nc_i16.py, add coverage for SGPR sources, literal constants, high-half preservation, and non-VGPR op_sel destination rejection.
- Update docs/design.md row 261 with RDNA2 ISA details and probe status.
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.
Add the salu_cmov_b64 group (14 cases) to tools/int_hw_probe.py so the
gfx1036 measurement in docs/design.md is reproducible, name the command in
the row, drop the pointer to the duplicate row, and point the salu_diff.py
comment at the design.md counts instead of a second number.
AI-assisted.
- int_hw_probe: VOP3 clamp on the carry-out add/sub ops (#1831) and v_cvt_rpi/flr's exact floor(x+0.5) and NaN
sign saturation (#1856) now translate as gfx1035 measured, so KNOWN_DIVERGENCES is empty. The known-divergence
test reports a synthetic entry. shader_validation.md says so, and design.md loses the stale duplicate
v_cvt_flr/rpi row a "both" merge left that still called them open.
- docs/README.md: one Other languages line (fr, pt-BR, zh-CN, pl-PL, tr, ru, ja); docs/i18n/README.md: one row
each for pt-BR and zh-CN (the newer).
- anim_rigs, d16_format_probe, pe_shader_containers: text writes name newline="\n" (#1615);
pe_shader_containers guards stdout (#1428).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>