shader: lower neg(N) operand modifier in gfx2hlsl (Part of #1723) #2030
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2037"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T23:32:07Z.
Part of #1723
What this unblocks: Run 20 census #14 (43 pairs) refused with
operand 'neg(...)'.LLVM prints a lone negation of a numeric operand as
neg(x), so that-1is not read as the integer. gfx2hlsl only knew the-xspelling. A shared helper now reads both:neg(x)is the sign bit flipped (^ 0x80000000uon integer selects, a float negation on float ops and compares).-1stays the integer. Integer ops that do not model a negation still refuse it. New teststartup_gfx2hlsl_neg_operand(registered in CMakeLists.txt).Verification:
python3 -B tests/startup_gfx2hlsl_neg_operand_check.py-> PASS (on origin/main the same test fails withUnsupported: operand 'neg(v30)')tests/startup_gfx2hlsl*_check.pyscripts run withpython3 -B-> exit 0AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T23:32:17Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
8a290f6ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.