test: extra malformed-encoding and per-instruction controls for VLDMXCSR/VSTMXCSR #1181
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1181
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1181/head"
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?
@tedin7 on GitHub · 2026-11-24 02:45 UTC · original
tedin7:x2w-cpu-mxcsr-vex-extra-tests→main· +61 −5 · 3 files · 1 commits · merged 2026-11-24 04:15 UTCChange
Test-only follow-up to #1134. It adds cases from the closed-in-favour branch of #1130 that the shared VLDMXCSR/VSTMXCSR lowering tests do not yet pin. No change to
tools/. This work is AI-assisted.cpu_aot_vmxcsr_malformed(new, no fixture, no AVX): six malformed VEX loads and six malformed stores (VEX.L = 1 in both prefix lengths, vvvv other than 1111, pp = 01, a register operand, map 0F38) must be refused bylowerat their own address in the host-MXCSR profile. #1134 checks only that the decoder calls them invalid, and only for the load. The well-formed VLDMXCSR and VSTMXCSR beside them, with and without VEX.W, must lower to_mm_setcsrand_mm_getcsr.unmaskedcontrol: the unmasked-exception refusal is disabled, somxcsr_afteraccepts 0x1D80 and must break a rule.mixldload,mixvstread,mixvldload,mixstread). Each must break a rule in that very export, so a wrong lowering of one form is caught even where the other form is right.Refs #1093, #1134, #1130.
Verification
python3 -B tests/cpu/vmxcsr.py check malformedon this branch: exit 0, "12 malformed VEX loads and stores are refused by the lowering at their address; ...".VSTMXCSRremoved from the lowering: the same command fails withunsupported query operation at 0x1000: vstmxcsr dword ptr [rax].python3 -B tests/rdna2_tools_check.py: OK (skipped=10).cpu_aot_vmxcsrwith the five new controls (needs MSVC and ml64); the Windows CI jobs run them. The new variants are generated by editing one export's C++ and the check requires the broken rule to name that export.Evidence and follow-up
No new binary fixture: the malformed check uses hex bytes written in the test, the controls reuse
vmxcsr.asm. MIT, original code, no game files.Checklist
@chatgpt-codex-connector[bot] on GitHub · 2026-11-24 03:27 UTC · original · edited 2026-11-24 03:31 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
4de52b0ℹ️ 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.