Support low16 half-to-integer VOP1 conversions #1084

Closed
github-bot wants to merge 1 commit from gh-pr/1084/head into gh-pr/1084/base
Owner

@⁠romn4rch on GitHub · 2026-11-24 00:31 UTC · original
romn4rch:romn4rch-binary16-low16 → main · +304 −17 · 5 files · 1 commits · closed without merging

Add the next low16-only binary16 conversion slice for statically proven finite half inputs. Support v_cvt_i16_f16 and v_cvt_u16_f16 in unsuffixed, _e32, and _e64 spellings, truncate toward zero, enforce the destination range, require preserved denormals, and track results as low16 so whole-word and high-half reads remain rejected.

Adds source-built boundary, refusal, and mutation controls, form-coverage checks, CMake registration, and documentation. This validates the translator's modeled behavior only; it does not establish gfx1013 hardware behavior.

Validation:

  • python -B tests\pixel_aot_check.py - passed
  • python -B tests\form_coverage_check.py - passed
  • git diff --check - passed
  • LLVM 15 assembly/disassembly round-trip - not run; llvm-mc and llvm-objcopy are unavailable
  • WARP draw - not run; DXC and a configured dev build are unavailable
  • Physical-GPU test - not run

Refs #839

**@⁠romn4rch** on GitHub · 2026-11-24 00:31 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1084) `romn4rch:romn4rch-binary16-low16` → `main` · +304 −17 · 5 files · 1 commits · closed without merging Add the next low16-only binary16 conversion slice for statically proven finite half inputs. Support `v_cvt_i16_f16` and `v_cvt_u16_f16` in unsuffixed, `_e32`, and `_e64` spellings, truncate toward zero, enforce the destination range, require preserved denormals, and track results as low16 so whole-word and high-half reads remain rejected. Adds source-built boundary, refusal, and mutation controls, form-coverage checks, CMake registration, and documentation. This validates the translator's modeled behavior only; it does not establish gfx1013 hardware behavior. Validation: - `python -B tests\pixel_aot_check.py` - passed - `python -B tests\form_coverage_check.py` - passed - `git diff --check` - passed - LLVM 15 assembly/disassembly round-trip - not run; `llvm-mc` and `llvm-objcopy` are unavailable - WARP draw - not run; DXC and a configured dev build are unavailable - Physical-GPU test - not run Refs #839
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:40:26 +00:00
github-bot closed this pull request 2026-11-26 22:40:26 +00:00
Author
Owner

@⁠romn4rch on GitHub · 2026-11-24 00:53 UTC · original

Closing in favour of #1077, which the maintainer chose as the integration point in #839. #1077 already covers every boundary, refusal and mutation from this PR; the comparison is in #839.

AI-assisted.

**@⁠romn4rch** on GitHub · 2026-11-24 00:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1084#issuecomment-7118536062) Closing in favour of #1077, which the maintainer chose as the integration point in #839. #1077 already covers every boundary, refusal and mutation from this PR; the comparison is in #839. _AI-assisted._

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.