upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorKal0s-design <356578040+Kal0s-design@users.noreply.github.com>2026-12-02 15:06:08 +0100
committerKal0s-design <356578040+Kal0s-design@users.noreply.github.com>2026-12-02 15:06:08 +0100
commit1f158fe577b947d045bc70187584bc40a13de1bf (patch)
treee5c2a8b42f9b7c2b03e180cd80cf3fa8b621810a /runtime/test/queue_proxy_test.cpp
parent69cd4106ce292abdeba319787daeac0f2a5aa6ea (diff)
x64_recomp: SHLD and SHRD (0F A4/A5/AC/AD) decode with their ModRM and imm8
The 0F table had no entry for the double-precision shifts, so 0F A4, 0F A5, 0F AC and 0F AD decoded as the unknown op0f_XX after the two opcode bytes. The ModRM byte, any SIB/displacement and the imm8 of the A4/AC forms were then read as the next instructions: 48 0F A4 C2 05 C3 came out as op0f_a4 (3 bytes) followed by a bogus "ret 0xc305". Add them as "Ev Gv Ib" (A4, AC) and "Ev Gv c" (A5, AD), the same specs the table already uses for ModRM + imm8 and for the CL count. 66 and REX.W/R/X/B apply through the shared operand parser. Decoding only: there is no emitter, so the translator reports them as unhandled "shld"/"shrd" and leaves a brk, as it does for other instructions it cannot translate. The census now counts them by name instead of stopping the function at a decode error. The test covers register and memory forms (SIB + disp8, RIP + disp32), with and without REX.W and 66, the next instruction's start, and the translator's unhandled report. Lengths match GNU objdump 2.46. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions