Support low16 half-to-integer VOP1 conversions #1077

Closed
romn4rch wants to merge 1 commit from upstream-pr/1084 into main
romn4rch commented 2026-11-24 00:31:05 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-24T00:31:05Z.


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

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6571815495 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1084). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-24T00:31:05Z. --- 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
upstream-sync closed this pull request 2026-11-24 06:46:13 +00:00
romn4rch commented 2026-11-24 06:49:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-24T00:53:08Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7118536062 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1084#issuecomment-7118536062). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-24T00:53:08Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1077
No description provided.