test: extra malformed-encoding and per-instruction controls for VLDMXCSR/VSTMXCSR #1174
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1181"
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-24T02:45:04Z.
Change
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
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T03:27:55Z.
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.