feat: f16 integer and normalized conversions, pknorm/pack and min3/max3/med3 in the RDNA 2 interpreter and HLSL — 1,364/1,490 #275

Open
github-bot wants to merge 3 commits from github-bot/gh-275 into main AGit
Owner

@⁠KainanP on GitHub · 2026-11-25 23:54 UTC · original
KainanP:feat/f16-int-norm-pack → main · +871 −10 · 12 files · 3 commits · open

Change

The reference interpreter and the HLSL recompiler now run 20 half-precision encodings that until now raised Untranslated / Untranslatable: the 16-bit integer and normalized conversions, the pknorm/pack ops and the three-operand f16 min/max/median.

Group Encodings Semantics
Integer conversions (VOP1 + VOP3) v_cvt_f16_{u16,i16}, v_cvt_{u16,i16}_f16 (8) Integer → f16 rounds to nearest even (65520 → +inf); f16 → integer truncates and saturates, NaN → 0
Normalized (VOP1 + VOP3) v_cvt_norm_{i16,u16}_f16 (4) Clamp to [−1, 1] / [0, 1] (NaN → 0), then one rounding of the exact × 32767 / × 65535
Packs (VOP3) v_cvt_pknorm_{i16,u16}_{f16,f32}, v_pack_b32_f16 (5) pknorm = cvt_norm on each half / f32 word, {S1, S0}; pack = {S1.f16, S0.f16}
Three operands (VOP3) v_min3_f16, v_max3_f16, v_med3_f16 (3) min(min(S0, S1), S2) / max(max(…)) built on main's v_min/max_f16; med3 as the ISA pseudocode (any NaN → min3)

VOP3: abs/neg act on bit 15 of an f16 half (bit 31 of an f32 source); op_sel is accepted where the ISA's table 21 allows it (v_cvt_pknorm_*_f16, v_pack_b32_f16: source halves; v_min3/max3/med3_f16: source halves, and op_sel[3] writes D[31:16]); clamp saturates an f16 result to [0, 1] (NaN → +0), as the f16 ops of #218 do. A float inline constant on the 16-bit integer source of v_cvt_f16_{u16,i16} gives the low half of its f32 pattern, as #226 settled for 16-bit integer sources (LLVM SIInstrInfo::isInlineConstant). Everything unsourced is refused by name on both sides: SDWA/DPP forms, omod, op_sel on the VOP1 opcodes, on f32 sources, on the destination of the 32-bit packs and on the high half of a constant, abs/neg on integer sources, and clamp on integer or packed results.

How it sits with other work:

  • Builds on IxMxAMAR's f16 groundwork (#218 interpreter, #219 HLSL): same register conventions (16-bit result in one half, other half kept; inline float constants as binary16; NaN result 0x7E00), and the HLSL reuses his F32ToF16 / F16IsNan / F16Min / F16Max / F16Clamp helpers instead of redefining them. v_min3/max3/med3_f16 call his half_min / half_max (interpreter) and F16Min / F16Max (HLSL), so their NaN and signed-zero rules are exactly main's v_min/max_f16.
  • Disjoint from lcg007xd-c's open f16 PRs: #245 / #251 (v_floor/ceil/trunc/rndne_f16), #246 (v_cvt_pkrtz_f16_f32), #247 (v_fract_f16, v_frexp_mant_f16, v_frexp_exp_i16_f16) and #250 (f16 compares in HLSL) — none of their opcodes is here. The code is a separate module pair (emu/rdna2_exec_f16conv.py, emu/rdna2_hlsl_f16conv.py); the dispatchers get one import and one branch each, so the only textual overlap with those PRs is the README coverage line (and the HLSL helper list next to #250).
  • Consistent with #269 (f32 v_min/max/min3/max3/med3 NaN and ±0 rules): the f16 versions here already follow the same rules — a NaN operand gives the other operand, −0 is below +0, med3 with a NaN source is min3, so med3(NaN, 0, 1.0) = +0. The median compares as floats (+0 == −0) exactly like #269's median3.

Coverage: interpreter 1,344 → 1,364 of 1,490 encodings on current main (rdna2_exec.coverage() prints (1364, 1490); README 91%), in the 2 READMEs (English and French); the test count is 1900+ (1,940 collected). docs/images/*.svg are left as on main (they still show an older count and need a package for the imports bar).

Linked issue: none.

Verification

Windows 11, Python 3.12, runtime built with CMake (run on 3e258c8; the rebase onto 578098b only brings #274's README lines).

python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed!
python -m pytest (NVIDIA GeForce RTX 4060 Laptop GPU)                → 1440 passed, 17 skipped

The two new files plus the neighbouring f16/graphics/wave64 GPU tests (test_rdna2_exec_f16conv.py, test_rdna2_hlsl_f16conv.py, test_rdna2_hlsl_f16.py, test_rdna2_f16.py, test_rdna2_graphics.py, test_rdna2_hlsl_wave64.py) on the two other adapters:

WARP (ANYXBOXX_GPU=warp)                          → 103 passed
Intel UHD Graphics (ANYXBOXX_GPU=Intel, 16-lane)  → 103 passed

Oracle and test data

  • HLSL checked against the reference interpreter, byte for byte, on RTX, WARP and Intel UHD:
    • test_f16conv_ops_match_interpreter_on_gpu (wave32) and ..._in_wave64: every one of the 20 encodings with its accepted VOP3 variants (neg/abs, clamp, op_sel), inline f16/integer constants and literals, under a partial EXEC (0x0F0FF0F3; 0xF00F0FF0 for the upper 32 lanes), on per-lane sources built from 36 f16 boundary halves (±0, denormals, 0.5 ties, 0.5 + 2^-11, 1 − 2^-11, 32768, 65504, ±inf, quiet/signalling/negative NaNs) under junk other halves and 25 f32 boundary words (denormals, near-ties of the norm products, ±inf, NaNs), one lane in eight random, each destination preset to a per-lane old value. test_parity_program_results_vary_by_lane guards that results vary per lane and that inactive lanes keep their old value.
    • test_unary_ops_on_every_f16_input_match_interpreter_on_gpu: the 6 unary ops on all 65,536 16-bit inputs (a 2,048-step loop over 32 lanes), each 32-bit destination word folded into a per-lane, per-op checksum (rotl(sum, 5) + word), so one wrong word on any input changes the stored memory.
    • test_helpers_compile_in_vertex_and_pixel_shaders: the helpers are present and compile in vs_6_0 / ps_6_x.
  • The HLSL helpers are integer-only (no float arithmetic, no 64-bit type, no loop; the 40-bit product of pknorm_f32 is held in two words), so results do not depend on a driver's denormal handling or float folding, and they run on Intel UHD without FP64.
  • Interpreter expectations are worked out by hand (tests/test_rdna2_exec_f16conv.py, arithmetic in the comments): edges, ties, saturation ends, op_sel, constants, inactive lanes, the min3/max3/med3 NaN and ±0 cases, and every refused form (with the HLSL refusal).
  • All test data is built in the tests; no external data.
  • Failure case: on main both new test files fail (emu.rdna2_exec_f16conv does not exist) and each of the 20 encodings raises instruction non traduite.

Sources (labelled per docs/research/rdna2-sources.md; printed page numbers of the archived PDF, SHA-256 22aec03f…4795):

  • AMD, "RDNA 2" ISA, November 2020:
    • §12.8 VOP1 opcodes 80-83, 99-100 (p. 146-149): V_CVT_U16_F16 / V_CVT_I16_F16 "Conversion is done with truncation", "supports … saturation"; V_CVT_F16_U16/I16 and V_CVT_NORM_* "0.5ULP accuracy".
    • §12.12 VOP3 opcodes 785-787, 849, 852, 855, 872-873 (p. 179-185): V_PACK_B32_F16 D[31:16].f16 = S1.f16; D[15:0].f16 = S0.f16; V_CVT_PKNORM_*_F16 D = {(snorm)S1.f16, (snorm)S0.f16}, V_CVT_PKNORM_*_F32 D.i16_lo = (snorm)S0.f32; D.i16_hi = (snorm)S1.f32; V_MIN3_F16: D.f16 = V_MIN_F16(V_MIN_F16(S0.f16, S1.f16), S2.f16), V_MAX3_F16 alike (p. 181); V_MED3_F16 (p. 182): if (isNan(S0.f16) || isNan(S1.f16) || isNan(S2.f16)) D.f16 = V_MIN3_F16(S0.f16, S1.f16, S2.f16); else if (V_MAX3_F16(S0.f16, S1.f16, S2.f16) == S0.f16) D.f16 = V_MAX_F16(S1.f16, S2.f16); else if (… == S1.f16) D.f16 = V_MAX_F16(S0.f16, S2.f16); else D.f16 = V_MAX_F16(S0.f16, S1.f16).
    • §12.7 VOP2 opcodes 57-58 (p. 136): V_MAX_F16 / V_MIN_F16 pseudocode — else if (S0.f16 == NaN) D.f16 = S1.f16; else if (S1.f16 == NaN) D.f16 = S0.f16; else if (S0.f16 == +0.0 && S1.f16 == -0.0) … (−0.0 below +0.0), the same rows #269 quotes for f32. Main's half_min / half_max already implement them, and min3/max3/med3 inherit them here. The IEEE_MODE && sNaN → Quiet(…) rows are not modelled (as on main).
    • §6.2.5 table 21 (p. 44): OPSEL usable on V_CVT_PKNORM_{I16,U16}_F16, V_MIN3/MAX3/MED3_{F16,…}, V_PACK_F16, and "not for VOP1, VOP2 or VOPC instructions using the VOP3 encoding".
  • LLVM 20 AMDGPU (Apache-2.0 with LLVM exception; read, not copied):
    • VOP1Instructions.td: fp_to_uint_sat / fp_to_sint_sat are selected to v_cvt_u16_f16 / v_cvt_i16_f16 ("These i16 conversions naturally saturate"; the LangRef's llvm.fpto*i.sat gives 0 for NaN).
    • AMDGPUInstCombineIntrinsic.cpp, fmed3AMDGCN: constant llvm.amdgcn.fmed3 (f32 and f16) is folded with the ISA's median rule — compare against maxnum(maxnum(S0, S1), S2) (an APFloat compare, so +0 == −0), then maxnum of the other two — and a NaN operand folds to minnum of the other two, i.e. min3.
    • GCNSubtarget::zeroesHigh16BitsOfDest: "On gfx10, all 16-bit instructions preserve the high bits" (v_cvt_f16_{u16,i16} are listed).
  • Microsoft Learn, Data Conversion Rules (Direct3D): FLOAT → SNORM/UNORM: NaN → 0, clamp to [−1, 1] / [0, 1] including ±INF, scale by 2^(n−1)−1 / 2^n−1.
  • No code copied.

Assumptions left open (measurement requests)

These rest on no published measurement; each is a small hardware run (RDNA 2, wave32, default MODE):

  1. v_cvt_pknorm_{i16,u16}_f32: one rounding of the exact product (as v_cvt_norm_*'s "0.5ULP accuracy"), or an f32 product rounded first? They differ only on near-ties, e.g. 0x3EFFFFFF (0.5 − 2^-25) × 32767 = 16383.49999902 → 16383 here, 16384 with an f32 product.
  2. Ties of the norm conversions: to nearest even (0.5 × 32767 = 16383.5 → 16384, 0.5 × 65535 → 32768), from the ISA's default round mode; D3D's description (+0.5 then truncate) allows ±1 tolerance.
  3. The VOP1 (_e32) forms keep the high half of the destination like the VOP3 ones (LLVM's gfx10 rule for 16-bit instructions); v_cvt_{u16,i16}_f16 and v_cvt_norm_* are not in LLVM's list.
  4. abs/neg on an f16 half or a packed half are bit operations on bit 15.
  5. v_min3/max3/med3_f16 with every source NaN give 0x7E00 (main's v_min/max_f16 returns the canonical NaN; the pseudocode would pass S1 through, which #269 keeps for f32); with IEEE_MODE set, a signalling NaN source should come back quieted instead of being skipped — not modelled, as for main's v_min/max_f16 and #269.
  6. v_med3_f16(-0, +0, -1) = +0 from the ISA pseudocode and LLVM's fold (max3 = +0 "equals" S0 = −0, so the result is max(S1, S2)); a sorted median would give −0.
  7. Refused until measured: clamp on v_cvt_{u16,i16}_f16 (the ISA says the bit only gates the INEXACT exception there), v_cvt_norm_*, v_cvt_pknorm_*, v_pack_b32_f16; op_sel[3] on the 32-bit packs; omod (whether it applies to f16 destinations depends on MODE).

Checklist

  • The PR covers a single reviewable behaviour. (One instruction family: f16 integer/normalized conversions, packs and three-operand min/max/median.)
  • A test fails without this change and passes with it.
  • The commands and results of each check are given above.
  • An unimplemented function returns an error (E_NOTIMPL), never a fake success. (Unsourced forms raise Untranslated / Untranslatable naming the instruction and the modifier.)
  • README: the same change in English and French (test_readme_sync.py checks it).
  • No game, console or SDK file, no key, no dump, no download link.
  • Findings drawn from a title: none.
  • Code taken from another project: none.

Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP.

🤖 Generated with Claude Code

**@⁠KainanP** on GitHub · 2026-11-25 23:54 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275) `KainanP:feat/f16-int-norm-pack` → `main` · +871 −10 · 12 files · 3 commits · open ## Change The reference interpreter and the HLSL recompiler now run 20 half-precision encodings that until now raised `Untranslated` / `Untranslatable`: the 16-bit integer and normalized conversions, the pknorm/pack ops and the three-operand f16 min/max/median. | Group | Encodings | Semantics | | --- | --- | --- | | Integer conversions (VOP1 + VOP3) | `v_cvt_f16_{u16,i16}`, `v_cvt_{u16,i16}_f16` (8) | Integer → f16 rounds to nearest even (65520 → +inf); f16 → integer truncates and saturates, NaN → 0 | | Normalized (VOP1 + VOP3) | `v_cvt_norm_{i16,u16}_f16` (4) | Clamp to [−1, 1] / [0, 1] (NaN → 0), then one rounding of the exact `× 32767` / `× 65535` | | Packs (VOP3) | `v_cvt_pknorm_{i16,u16}_{f16,f32}`, `v_pack_b32_f16` (5) | `pknorm` = `cvt_norm` on each half / f32 word, `{S1, S0}`; `pack` = `{S1.f16, S0.f16}` | | Three operands (VOP3) | `v_min3_f16`, `v_max3_f16`, `v_med3_f16` (3) | `min(min(S0, S1), S2)` / `max(max(…))` built on main's `v_min/max_f16`; `med3` as the ISA pseudocode (any NaN → `min3`) | VOP3: `abs`/`neg` act on bit 15 of an f16 half (bit 31 of an f32 source); `op_sel` is accepted where the ISA's table 21 allows it (`v_cvt_pknorm_*_f16`, `v_pack_b32_f16`: source halves; `v_min3/max3/med3_f16`: source halves, and `op_sel[3]` writes `D[31:16]`); `clamp` saturates an f16 result to [0, 1] (NaN → +0), as the f16 ops of #218 do. A float inline constant on the 16-bit integer source of `v_cvt_f16_{u16,i16}` gives the low half of its f32 pattern, as #226 settled for 16-bit integer sources (LLVM `SIInstrInfo::isInlineConstant`). Everything unsourced is refused by name on both sides: SDWA/DPP forms, `omod`, `op_sel` on the VOP1 opcodes, on f32 sources, on the destination of the 32-bit packs and on the high half of a constant, `abs`/`neg` on integer sources, and `clamp` on integer or packed results. How it sits with other work: - Builds on IxMxAMAR's f16 groundwork (#218 interpreter, #219 HLSL): same register conventions (16-bit result in one half, other half kept; inline float constants as binary16; NaN result `0x7E00`), and the HLSL reuses his `F32ToF16` / `F16IsNan` / `F16Min` / `F16Max` / `F16Clamp` helpers instead of redefining them. `v_min3/max3/med3_f16` call his `half_min` / `half_max` (interpreter) and `F16Min` / `F16Max` (HLSL), so their NaN and signed-zero rules are exactly main's `v_min/max_f16`. - Disjoint from lcg007xd-c's open f16 PRs: #245 / #251 (`v_floor/ceil/trunc/rndne_f16`), #246 (`v_cvt_pkrtz_f16_f32`), #247 (`v_fract_f16`, `v_frexp_mant_f16`, `v_frexp_exp_i16_f16`) and #250 (f16 compares in HLSL) — none of their opcodes is here. The code is a separate module pair (`emu/rdna2_exec_f16conv.py`, `emu/rdna2_hlsl_f16conv.py`); the dispatchers get one import and one branch each, so the only textual overlap with those PRs is the README coverage line (and the HLSL helper list next to #250). - Consistent with #269 (f32 `v_min/max/min3/max3/med3` NaN and ±0 rules): the f16 versions here already follow the same rules — a NaN operand gives the other operand, −0 is below +0, `med3` with a NaN source is `min3`, so `med3(NaN, 0, 1.0)` = +0. The median compares as floats (+0 == −0) exactly like #269's `median3`. Coverage: interpreter **1,344 → 1,364 of 1,490** encodings on current `main` (`rdna2_exec.coverage()` prints `(1364, 1490)`; README 91%), in the 2 READMEs (English and French); the test count is 1900+ (1,940 collected). `docs/images/*.svg` are left as on main (they still show an older count and need a package for the imports bar). Linked issue: none. ## Verification Windows 11, Python 3.12, runtime built with CMake (run on `3e258c8`; the rebase onto `578098b` only brings #274's README lines). ``` python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools → All checks passed! python -m pytest (NVIDIA GeForce RTX 4060 Laptop GPU) → 1440 passed, 17 skipped ``` The two new files plus the neighbouring f16/graphics/wave64 GPU tests (`test_rdna2_exec_f16conv.py`, `test_rdna2_hlsl_f16conv.py`, `test_rdna2_hlsl_f16.py`, `test_rdna2_f16.py`, `test_rdna2_graphics.py`, `test_rdna2_hlsl_wave64.py`) on the two other adapters: ``` WARP (ANYXBOXX_GPU=warp) → 103 passed Intel UHD Graphics (ANYXBOXX_GPU=Intel, 16-lane) → 103 passed ``` ## Oracle and test data - HLSL checked against the reference interpreter, byte for byte, on RTX, WARP and Intel UHD: - `test_f16conv_ops_match_interpreter_on_gpu` (wave32) and `..._in_wave64`: every one of the 20 encodings with its accepted VOP3 variants (`neg`/`abs`, `clamp`, `op_sel`), inline f16/integer constants and literals, under a partial EXEC (`0x0F0FF0F3`; `0xF00F0FF0` for the upper 32 lanes), on per-lane sources built from 36 f16 boundary halves (±0, denormals, 0.5 ties, 0.5 + 2^-11, 1 − 2^-11, 32768, 65504, ±inf, quiet/signalling/negative NaNs) under junk other halves and 25 f32 boundary words (denormals, near-ties of the norm products, ±inf, NaNs), one lane in eight random, each destination preset to a per-lane old value. `test_parity_program_results_vary_by_lane` guards that results vary per lane and that inactive lanes keep their old value. - `test_unary_ops_on_every_f16_input_match_interpreter_on_gpu`: the 6 unary ops on all 65,536 16-bit inputs (a 2,048-step loop over 32 lanes), each 32-bit destination word folded into a per-lane, per-op checksum (`rotl(sum, 5) + word`), so one wrong word on any input changes the stored memory. - `test_helpers_compile_in_vertex_and_pixel_shaders`: the helpers are present and compile in `vs_6_0` / `ps_6_x`. - The HLSL helpers are integer-only (no float arithmetic, no 64-bit type, no loop; the 40-bit product of `pknorm_f32` is held in two words), so results do not depend on a driver's denormal handling or float folding, and they run on Intel UHD without FP64. - Interpreter expectations are worked out by hand (`tests/test_rdna2_exec_f16conv.py`, arithmetic in the comments): edges, ties, saturation ends, `op_sel`, constants, inactive lanes, the min3/max3/med3 NaN and ±0 cases, and every refused form (with the HLSL refusal). - All test data is built in the tests; no external data. - Failure case: on main both new test files fail (`emu.rdna2_exec_f16conv` does not exist) and each of the 20 encodings raises `instruction non traduite`. Sources (labelled per `docs/research/rdna2-sources.md`; printed page numbers of the archived PDF, SHA-256 `22aec03f…4795`): - AMD, "RDNA 2" ISA, November 2020: - §12.8 VOP1 opcodes 80-83, 99-100 (p. 146-149): `V_CVT_U16_F16` / `V_CVT_I16_F16` "Conversion is done with truncation", "supports … saturation"; `V_CVT_F16_U16/I16` and `V_CVT_NORM_*` "0.5ULP accuracy". - §12.12 VOP3 opcodes 785-787, 849, 852, 855, 872-873 (p. 179-185): `V_PACK_B32_F16` `D[31:16].f16 = S1.f16; D[15:0].f16 = S0.f16`; `V_CVT_PKNORM_*_F16` `D = {(snorm)S1.f16, (snorm)S0.f16}`, `V_CVT_PKNORM_*_F32` `D.i16_lo = (snorm)S0.f32; D.i16_hi = (snorm)S1.f32`; `V_MIN3_F16`: `D.f16 = V_MIN_F16(V_MIN_F16(S0.f16, S1.f16), S2.f16)`, `V_MAX3_F16` alike (p. 181); `V_MED3_F16` (p. 182): `if (isNan(S0.f16) || isNan(S1.f16) || isNan(S2.f16)) D.f16 = V_MIN3_F16(S0.f16, S1.f16, S2.f16); else if (V_MAX3_F16(S0.f16, S1.f16, S2.f16) == S0.f16) D.f16 = V_MAX_F16(S1.f16, S2.f16); else if (… == S1.f16) D.f16 = V_MAX_F16(S0.f16, S2.f16); else D.f16 = V_MAX_F16(S0.f16, S1.f16)`. - §12.7 VOP2 opcodes 57-58 (p. 136): `V_MAX_F16` / `V_MIN_F16` pseudocode — `else if (S0.f16 == NaN) D.f16 = S1.f16; else if (S1.f16 == NaN) D.f16 = S0.f16; else if (S0.f16 == +0.0 && S1.f16 == -0.0) …` (−0.0 below +0.0), the same rows #269 quotes for f32. Main's `half_min` / `half_max` already implement them, and `min3/max3/med3` inherit them here. The `IEEE_MODE && sNaN → Quiet(…)` rows are not modelled (as on main). - §6.2.5 table 21 (p. 44): OPSEL usable on `V_CVT_PKNORM_{I16,U16}_F16`, `V_MIN3/MAX3/MED3_{F16,…}`, `V_PACK_F16`, and "not for VOP1, VOP2 or VOPC instructions using the VOP3 encoding". - LLVM 20 AMDGPU (Apache-2.0 with LLVM exception; read, not copied): - `VOP1Instructions.td`: `fp_to_uint_sat` / `fp_to_sint_sat` are selected to `v_cvt_u16_f16` / `v_cvt_i16_f16` ("These i16 conversions naturally saturate"; the LangRef's `llvm.fpto*i.sat` gives 0 for NaN). - `AMDGPUInstCombineIntrinsic.cpp`, `fmed3AMDGCN`: constant `llvm.amdgcn.fmed3` (f32 and f16) is folded with the ISA's median rule — compare against `maxnum(maxnum(S0, S1), S2)` (an APFloat compare, so +0 == −0), then `maxnum` of the other two — and a NaN operand folds to `minnum` of the other two, i.e. `min3`. - `GCNSubtarget::zeroesHigh16BitsOfDest`: "On gfx10, all 16-bit instructions preserve the high bits" (`v_cvt_f16_{u16,i16}` are listed). - Microsoft Learn, [Data Conversion Rules](https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-resources-data-conversion) (Direct3D): FLOAT → SNORM/UNORM: NaN → 0, clamp to [−1, 1] / [0, 1] including ±INF, scale by 2^(n−1)−1 / 2^n−1. - No code copied. ### Assumptions left open (measurement requests) These rest on no published measurement; each is a small hardware run (RDNA 2, wave32, default MODE): 1. `v_cvt_pknorm_{i16,u16}_f32`: one rounding of the exact product (as `v_cvt_norm_*`'s "0.5ULP accuracy"), or an f32 product rounded first? They differ only on near-ties, e.g. `0x3EFFFFFF` (0.5 − 2^-25) × 32767 = 16383.49999902 → 16383 here, 16384 with an f32 product. 2. Ties of the norm conversions: to nearest even (`0.5 × 32767` = 16383.5 → 16384, `0.5 × 65535` → 32768), from the ISA's default round mode; D3D's description (+0.5 then truncate) allows ±1 tolerance. 3. The VOP1 (`_e32`) forms keep the high half of the destination like the VOP3 ones (LLVM's gfx10 rule for 16-bit instructions); `v_cvt_{u16,i16}_f16` and `v_cvt_norm_*` are not in LLVM's list. 4. `abs`/`neg` on an f16 half or a packed half are bit operations on bit 15. 5. `v_min3/max3/med3_f16` with every source NaN give `0x7E00` (main's `v_min/max_f16` returns the canonical NaN; the pseudocode would pass S1 through, which #269 keeps for f32); with `IEEE_MODE` set, a signalling NaN source should come back quieted instead of being skipped — not modelled, as for main's `v_min/max_f16` and #269. 6. `v_med3_f16(-0, +0, -1)` = +0 from the ISA pseudocode and LLVM's fold (max3 = +0 "equals" S0 = −0, so the result is `max(S1, S2)`); a sorted median would give −0. 7. Refused until measured: `clamp` on `v_cvt_{u16,i16}_f16` (the ISA says the bit only gates the INEXACT exception there), `v_cvt_norm_*`, `v_cvt_pknorm_*`, `v_pack_b32_f16`; `op_sel[3]` on the 32-bit packs; `omod` (whether it applies to f16 destinations depends on MODE). ## Checklist - [x] The PR covers a single reviewable behaviour. (One instruction family: f16 integer/normalized conversions, packs and three-operand min/max/median.) - [x] A test fails without this change and passes with it. - [x] The commands and results of each check are given above. - [x] An unimplemented function returns an error (`E_NOTIMPL`), never a fake success. (Unsourced forms raise `Untranslated` / `Untranslatable` naming the instruction and the modifier.) - [x] README: the same change in English and French (`test_readme_sync.py` checks it). - [x] No game, console or SDK file, no key, no dump, no download link. - [x] Findings drawn from a title: none. - [x] Code taken from another project: none. Made with AI assistance: Claude Code with Claude Opus 5.5, for KainanP. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
20 encodings that raised Untranslated / Untranslatable: v_cvt_f16_{u16,i16},
v_cvt_{u16,i16}_f16 and v_cvt_norm_{i16,u16}_f16 (VOP1 and VOP3), and the VOP3
v_cvt_pknorm_{i16,u16}_{f16,f32}, v_pack_b32_f16 and v_min3/max3/med3_f16.

New modules emu/rdna2_exec_f16conv.py and emu/rdna2_hlsl_f16conv.py, built on
IxMxAMAR's f16 modules (#218, #219): same half-register conventions, and
min3/max3/med3 use half_min/half_max and F16Min/F16Max, so their NaN and signed
zero rules are main's v_min/max_f16 (ISA V_MIN/MAX_F16 pseudocode). The HLSL
helpers are integer-only (no FP64, no loop). Unsourced modifier forms are
refused by name on both sides.

Semantics from the AMD RDNA 2 ISA (November 2020), LLVM AMDGPU and Microsoft
Learn data conversion rules; assumptions are listed in the module docstring.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:41:38 +00:00
github-bot force-pushed github-bot/gh-275 from f5cc86ec6b to 6a72be899e 2026-11-26 11:03:30 +00:00 Compare
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 09:11 UTC · original

Rebased onto main c4c93bd after #230/#232/#235 merged (head 6a72be8). README recounted from rdna2_exec.coverage(): 1,305 of 1,490 RDNA 2 encodings (88%) in the 9 READMEs (main's 1,285 + this PR's 20), tests 1700+. The French and Russian READMEs had "1.285" with a dot on main; they now use the space their "1 490" uses.

Code conflicts were in the dispatch and helper lists of rdna2_exec_vop3.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and rdna2_hlsl_wave64.py, where #232 (int16) and the f16 compare PRs added entries next to this PR's. I kept both sides. None of the 20 names is handled by rdna2_exec_f16, rdna2_exec_int16 or rdna2_exec_cmpf16, and none is in the HLSL f16/int16 tables, so the order of the checks doesn't change anything.

Tests: full suite on the RTX 4060: 1684 passed, 17 skipped. The f16conv HLSL parity and interpreter files: 36 passed on WARP and 36 passed on Intel UHD. Ruff clean.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 09:11 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7187558948) Rebased onto main `c4c93bd` after #230/#232/#235 merged (head `6a72be8`). README recounted from `rdna2_exec.coverage()`: 1,305 of 1,490 RDNA 2 encodings (88%) in the 9 READMEs (main's 1,285 + this PR's 20), tests 1700+. The French and Russian READMEs had "1.285" with a dot on main; they now use the space their "1 490" uses. Code conflicts were in the dispatch and helper lists of `rdna2_exec_vop3.py`, `rdna2_hlsl.py`, `rdna2_hlsl_graphics.py` and `rdna2_hlsl_wave64.py`, where #232 (int16) and the f16 compare PRs added entries next to this PR's. I kept both sides. None of the 20 names is handled by `rdna2_exec_f16`, `rdna2_exec_int16` or `rdna2_exec_cmpf16`, and none is in the HLSL f16/int16 tables, so the order of the checks doesn't change anything. Tests: full suite on the RTX 4060: 1684 passed, 17 skipped. The f16conv HLSL parity and interpreter files: 36 passed on WARP and 36 passed on Intel UHD. Ruff clean. _AI use: Claude Code (Claude Opus 5.5)._
Keeps both sides: #302's VOP3P packed f16 opcodes and v_pk_fmac_f16
(rdna2_exec_pkf16 / rdna2_hlsl_pkf16 imports, dispatch, EXECUTABLE,
HELPERS and coverage_names) and this branch's 16-bit int/norm f16
conversions (rdna2_exec_f16conv / rdna2_hlsl_f16conv) in rdna2_exec.py,
rdna2_exec_vop3.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and
rdna2_hlsl_wave64.py. The two name sets are disjoint, so the dispatch
order does not change either side.

README: rdna2_exec.coverage() on the merged tree is 1,332 of 1,490,
89%, in the 9 languages; tests stay 1700+ (1,710 collected).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 11:26 UTC · original

#302 made this PR conflict, so I merged main into the branch (merge commit 6b06430, no rebase).

Kept both sides in rdna2_exec.py, rdna2_exec_vop3.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and rdna2_hlsl_wave64.py: #302's VOP3P packed f16 and v_pk_fmac_f16 (imports, dispatch, EXECUTABLE, HELPERS, coverage_names), plus this PR's rdna2_exec_f16conv / rdna2_hlsl_f16conv. The two sets of instruction names don't overlap, so the dispatch order doesn't change either side.

README: rdna2_exec.coverage() on the merged tree is 1,332 of 1,490 (89%), up from the 1,305 (88%) this PR claimed. I updated that in the 9 READMEs. The test count stays 1700+ (1,710 collected).

Tests on the merged tree:

  • RTX 4060 Laptop: tests/test_rdna2_hlsl* 98 passed. Full suite: 1695 passed, 15 skipped. The skips are Rust/TomBox builds that aren't present locally.
  • WARP and Intel UHD: test_rdna2_hlsl_f16conv.py, test_rdna2_exec_f16conv.py and test_rdna2_hlsl_pkf16.py 40/40 passed on each.
  • rdna2_ops verifier: 38,999 encodings, 0 wrong lengths.
  • ruff (CI selection): clean.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 11:26 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7190726106) #302 made this PR conflict, so I merged `main` into the branch (merge commit 6b06430, no rebase). Kept both sides in `rdna2_exec.py`, `rdna2_exec_vop3.py`, `rdna2_hlsl.py`, `rdna2_hlsl_graphics.py` and `rdna2_hlsl_wave64.py`: #302's VOP3P packed f16 and `v_pk_fmac_f16` (imports, dispatch, EXECUTABLE, HELPERS, `coverage_names`), plus this PR's `rdna2_exec_f16conv` / `rdna2_hlsl_f16conv`. The two sets of instruction names don't overlap, so the dispatch order doesn't change either side. README: `rdna2_exec.coverage()` on the merged tree is 1,332 of 1,490 (89%), up from the 1,305 (88%) this PR claimed. I updated that in the 9 READMEs. The test count stays 1700+ (1,710 collected). Tests on the merged tree: - RTX 4060 Laptop: `tests/test_rdna2_hlsl*` 98 passed. Full suite: 1695 passed, 15 skipped. The skips are Rust/TomBox builds that aren't present locally. - WARP and Intel UHD: `test_rdna2_hlsl_f16conv.py`, `test_rdna2_exec_f16conv.py` and `test_rdna2_hlsl_pkf16.py` 40/40 passed on each. - `rdna2_ops` verifier: 38,999 encodings, 0 wrong lengths. - ruff (CI selection): clean. _AI use: Claude Code (Claude Opus 5.5)._
Brings #351 (Rust workspace in main). Only the 9 READMEs conflicted, on the
test count row: kept main's 1800+ (1,845 collected on the merged tree). The
RDNA 2 figures stay at 1,332 of 1,490 (89%), recomputed from
rdna2_exec.coverage() on the merged tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since #351, crates/anyxboxx-report/data/rdna2-coverage.txt mirrors the
Python measure and test_built_in_gpu_table_is_up_to_date fails when it
drifts. Regenerated with python tests/test_rust_traduction_parity.py for
the encodings this branch adds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 12:48 UTC · original

Merged main (#351) into the branch with a merge commit (eb7b150), no rebase.

  • Conflict only in the 9 READMEs, on the test-count row: kept main's 1800+ (1,845 tests collected on the merged tree). The RDNA 2 figure stays 1,332 of 1,490 (89%), recomputed from rdna2_exec.coverage() on the merged tree.
  • New since #351: crates/anyxboxx-report/data/rdna2-coverage.txt must follow the Python measure, so 7afa9f4 regenerates it (python tests/test_rust_traduction_parity.py: VOP1 68 → 74, VOP3 404 → 418).
  • Checks: full suite on RTX 4060 Laptop (cargo build, CMake runtime, TomBox DLLs, pytest -n auto, ANYXBOXX_REQUIRE_RUNTIME=1) 1844 passed, 1 skipped; test_rdna2_hlsl_f16conv.py 8 passed on WARP and on Intel UHD; ruff (W605,F,E9) clean; rdna2_mnemonics.py --verifier on the gfx10 LLVM tests OK (38,999 encodings). CI green.

Note: #343 also regenerates that table (MIMG row), so whichever merges second will need a one-line merge there.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 12:48 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7192496311) Merged `main` (#351) into the branch with a merge commit (eb7b150), no rebase. - Conflict only in the 9 READMEs, on the test-count row: kept main's **1800+** (1,845 tests collected on the merged tree). The RDNA 2 figure stays **1,332 of 1,490 (89%)**, recomputed from `rdna2_exec.coverage()` on the merged tree. - New since #351: `crates/anyxboxx-report/data/rdna2-coverage.txt` must follow the Python measure, so 7afa9f4 regenerates it (`python tests/test_rust_traduction_parity.py`: VOP1 68 → 74, VOP3 404 → 418). - Checks: full suite on RTX 4060 Laptop (cargo build, CMake runtime, TomBox DLLs, `pytest -n auto`, `ANYXBOXX_REQUIRE_RUNTIME=1`) 1844 passed, 1 skipped; `test_rdna2_hlsl_f16conv.py` 8 passed on WARP and on Intel UHD; ruff (W605,F,E9) clean; `rdna2_mnemonics.py --verifier` on the gfx10 LLVM tests OK (38,999 encodings). CI green. Note: #343 also regenerates that table (MIMG row), so whichever merges second will need a one-line merge there. _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 15:27 UTC · original

This PR now conflicts with main in crates/anyxboxx-report/data/rdna2-coverage.txt (the coverage counts moved after #310 and #353). Please rebase on main, regenerate the coverage file and the counts in the 9 READMEs with the repository tools instead of editing by hand, run the RDNA 2 tests and force-push your branch.

🤖 Generated with Claude Code

**@⁠LooperSalty** on GitHub · 2026-11-26 15:27 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7196288856) This PR now conflicts with main in `crates/anyxboxx-report/data/rdna2-coverage.txt` (the coverage counts moved after #310 and #353). Please rebase on main, regenerate the coverage file and the counts in the 9 READMEs with the repository tools instead of editing by hand, run the RDNA 2 tests and force-push your branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot force-pushed github-bot/gh-275 from 7afa9f4c5c to ed48058e8f 2026-11-26 15:55:22 +00:00 Compare
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 15:50 UTC · original

Rebased on main 8473267 (head ed48058, three commits, no merge commits). The previous head is kept locally as tag pre-rebase2-275.

  • crates/anyxboxx-report/data/rdna2-coverage.txt: took main's version, then regenerated it with python tests/test_rust_traduction_parity.py. VOP1 75 → 81, VOP3 411 → 425 (the 20 encodings of this PR).
  • README: rdna2_exec.coverage() on the rebased tree gives 1,346 of 1,490 (90%). I wrote that into the 9 READMEs from the function's output with a script, not by hand. Main still showed 1,285 (86%). The test count stays 1800+ (1,886 collected).
  • Code conflicts with #302 in rdna2_exec.py, rdna2_exec_vop3.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and rdna2_hlsl_wave64.py: I kept both sides. None of the 14 names here (20 encodings) is in rdna2_exec_f16 (#310's transcendentals included), rdna2_exec_int16, rdna2_exec_cmpf16, rdna2_exec_pkf16 or the HLSL f16/int16/pkf16 tables. #353 only touches Rust MIMG code.

Checks on the rebased tree:

  • RTX 4060 Laptop (cargo build with CI flags, CMake runtime, TomBox DLLs, ANYXBOXX_REQUIRE_RUNTIME=1 pytest -n auto): 1885 passed, 1 skipped (test_runtime_package.py:235, "Rust refusal differs from C++"). That includes test_readme_sync.py and test_built_in_gpu_table_is_up_to_date.
  • test_rdna2_hlsl_f16conv.py: 8 passed on WARP, 8 passed on Intel UHD.
  • rdna2_mnemonics.py --verifier on the gfx10 LLVM tests: 38,999 encodings, 0 wrong lengths.
  • ruff (W605,F,E9): clean.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 15:50 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7196816220) Rebased on main `8473267` (head `ed48058`, three commits, no merge commits). The previous head is kept locally as tag `pre-rebase2-275`. - `crates/anyxboxx-report/data/rdna2-coverage.txt`: took main's version, then regenerated it with `python tests/test_rust_traduction_parity.py`. VOP1 75 → 81, VOP3 411 → 425 (the 20 encodings of this PR). - README: `rdna2_exec.coverage()` on the rebased tree gives **1,346 of 1,490 (90%)**. I wrote that into the 9 READMEs from the function's output with a script, not by hand. Main still showed 1,285 (86%). The test count stays **1800+** (1,886 collected). - Code conflicts with #302 in `rdna2_exec.py`, `rdna2_exec_vop3.py`, `rdna2_hlsl.py`, `rdna2_hlsl_graphics.py` and `rdna2_hlsl_wave64.py`: I kept both sides. None of the 14 names here (20 encodings) is in `rdna2_exec_f16` (#310's transcendentals included), `rdna2_exec_int16`, `rdna2_exec_cmpf16`, `rdna2_exec_pkf16` or the HLSL f16/int16/pkf16 tables. #353 only touches Rust MIMG code. Checks on the rebased tree: - RTX 4060 Laptop (cargo build with CI flags, CMake runtime, TomBox DLLs, `ANYXBOXX_REQUIRE_RUNTIME=1 pytest -n auto`): 1885 passed, 1 skipped (`test_runtime_package.py:235`, "Rust refusal differs from C++"). That includes `test_readme_sync.py` and `test_built_in_gpu_table_is_up_to_date`. - `test_rdna2_hlsl_f16conv.py`: 8 passed on WARP, 8 passed on Intel UHD. - `rdna2_mnemonics.py --verifier` on the gfx10 LLVM tests: 38,999 encodings, 0 wrong lengths. - ruff (W605,F,E9): clean. _AI use: Claude Code (Claude Opus 5.5)._
github-bot force-pushed github-bot/gh-275 from ed48058e8f to 13325ca205 2026-11-26 16:23:01 +00:00 Compare
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 16:21 UTC · original

Rebased on main ce0f90f after #343 (head 13325ca, three commits, no merge commits; previous head kept locally as tag pre-rebase3-275).

  • Conflicts were only the import and HELPERS lines in rdna2_exec.py, rdna2_hlsl.py, rdna2_hlsl_graphics.py and rdna2_hlsl_wave64.py, next to #343's gather lines: both kept.
  • crates/anyxboxx-report/data/rdna2-coverage.txt: regenerated with python tests/test_rust_traduction_parity.py on the rebased tree (VOP1 75 → 81, VOP3 411 → 425; MIMG keeps main's 57).
  • README, 9 languages: rdna2_exec.coverage() gives 1,364 of 1,490 (91%). Main's code is at 1,344 (its READMEs still read 1,330), this PR adds 20. Test count 1900+ (1,932 collected).
  • Checks: full suite on RTX (ANYXBOXX_REQUIRE_RUNTIME=1, pytest -n auto) 1931 passed, 1 skipped; test_rdna2_hlsl_f16conv.py 8 passed on WARP and on Intel UHD; rdna2_mnemonics.py --verifier 38,999 encodings, 0 wrong lengths; ruff (W605,F,E9) clean.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 16:21 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7197531214) Rebased on main `ce0f90f` after #343 (head `13325ca`, three commits, no merge commits; previous head kept locally as tag `pre-rebase3-275`). - Conflicts were only the import and `HELPERS` lines in `rdna2_exec.py`, `rdna2_hlsl.py`, `rdna2_hlsl_graphics.py` and `rdna2_hlsl_wave64.py`, next to #343's gather lines: both kept. - `crates/anyxboxx-report/data/rdna2-coverage.txt`: regenerated with `python tests/test_rust_traduction_parity.py` on the rebased tree (VOP1 75 → 81, VOP3 411 → 425; MIMG keeps main's 57). - README, 9 languages: `rdna2_exec.coverage()` gives **1,364 of 1,490 (91%)**. Main's code is at 1,344 (its READMEs still read 1,330), this PR adds 20. Test count 1900+ (1,932 collected). - Checks: full suite on RTX (`ANYXBOXX_REQUIRE_RUNTIME=1`, `pytest -n auto`) 1931 passed, 1 skipped; `test_rdna2_hlsl_f16conv.py` 8 passed on WARP and on Intel UHD; `rdna2_mnemonics.py --verifier` 38,999 encodings, 0 wrong lengths; ruff (W605,F,E9) clean. _AI use: Claude Code (Claude Opus 5.5)._
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-26 17:26 UTC · original

The count does not match across the PR. The title says 1,228/1,490, the README rows say 1,364 of the 1,490 (the earlier comment said 1,305). Please set the title to the number printed by rdna2_exec.coverage() after the rebase, and use that same figure in the 9 READMEs, including the 91% row. The HLSL tests compare against the reference interpreter byte for byte, so the code side looks ready.

🤖 Generated with Claude Code

**@⁠LooperSalty** on GitHub · 2026-11-26 17:26 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7199020100) The count does not match across the PR. The title says `1,228/1,490`, the README rows say `1,364 of the 1,490` (the earlier comment said 1,305). Please set the title to the number printed by `rdna2_exec.coverage()` after the rebase, and use that same figure in the 9 READMEs, including the 91% row. The HLSL tests compare against the reference interpreter byte for byte, so the code side looks ready. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot changed title from feat: f16 integer and normalized conversions, pknorm/pack and min3/max3/med3 in the RDNA 2 interpreter and HLSL — 1,228/1,490 to feat: f16 integer and normalized conversions, pknorm/pack and min3/max3/med3 in the RDNA 2 interpreter and HLSL — 1,364/1,490 2026-11-26 17:47:13 +00:00
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 17:43 UTC · original

Title fixed: rdna2_exec.coverage() prints (1364, 1490) on this branch, and also on the branch merged with current main (merges cleanly). The 9 READMEs already use 1,364 of 1,490 and the 91% row; the 1,228 and 1,305 figures were from earlier bases.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 17:43 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7199539630) Title fixed: `rdna2_exec.coverage()` prints `(1364, 1490)` on this branch, and also on the branch merged with current `main` (merges cleanly). The 9 READMEs already use 1,364 of 1,490 and the 91% row; the 1,228 and 1,305 figures were from earlier bases. _AI use: Claude Code (Claude Opus 5.5)._
github-bot force-pushed github-bot/gh-275 from 13325ca205 to 6ff62eb452 2026-11-26 18:27:45 +00:00 Compare
Author
Owner

@⁠KainanP on GitHub · 2026-11-26 18:26 UTC · original

Rebased onto main 8e32daa (after #407), head 6ff62eb, three commits (previous head kept locally as tag pre-rebase4-275).

  • Main now keeps only the English and French READMEs, so the seven other translations are dropped here as well. The README commit takes main's text and puts back this PR's figure.
  • rdna2_exec.coverage() on the rebased tree prints (1364, 1490), the same as before. The title, the GPU bullet (91%) and "1,364 of the 1,490" in both READMEs all use this figure. Main's READMEs read 1,330 (89%).
  • rdna2-coverage.txt: started from main's copy and regenerated with python tests/test_rust_traduction_parity.py. The result is the same as this branch's (VOP1 81, VOP3 425). Test count stays 1900+ (1,940 collected).
  • Checks: full suite on RTX (ANYXBOXX_REQUIRE_RUNTIME=1, pytest -n auto) 1939 passed, 1 skipped. test_rdna2_hlsl_f16conv.py 8 passed on WARP and on Intel UHD. rdna2_mnemonics.py --verifier: 38,999 encodings, 0 wrong lengths. ruff (W605,F,E9) clean.

AI use: Claude Code (Claude Opus 5.5).

**@⁠KainanP** on GitHub · 2026-11-26 18:26 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/275#issuecomment-7200458493) Rebased onto main `8e32daa` (after #407), head `6ff62eb`, three commits (previous head kept locally as tag `pre-rebase4-275`). - Main now keeps only the English and French READMEs, so the seven other translations are dropped here as well. The README commit takes main's text and puts back this PR's figure. - `rdna2_exec.coverage()` on the rebased tree prints **(1364, 1490)**, the same as before. The title, the GPU bullet (**91%**) and "1,364 of the 1,490" in both READMEs all use this figure. Main's READMEs read 1,330 (89%). - `rdna2-coverage.txt`: started from main's copy and regenerated with `python tests/test_rust_traduction_parity.py`. The result is the same as this branch's (VOP1 81, VOP3 425). Test count stays 1900+ (1,940 collected). - Checks: full suite on RTX (`ANYXBOXX_REQUIRE_RUNTIME=1`, `pytest -n auto`) 1939 passed, 1 skipped. `test_rdna2_hlsl_f16conv.py` 8 passed on WARP and on Intel UHD. `rdna2_mnemonics.py --verifier`: 38,999 encodings, 0 wrong lengths. ruff (W605,F,E9) clean. _AI use: Claude Code (Claude Opus 5.5)._
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/275/head:github-bot/gh-275'
git switch 'github-bot/gh-275'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-275'
git switch 'github-bot/gh-275'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-275'
git switch 'github-bot/gh-275'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-275'
git switch 'main'
git merge --squash 'github-bot/gh-275'
git switch 'main'
git merge --ff-only 'github-bot/gh-275'
git switch 'main'
git merge 'github-bot/gh-275'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.