herumi / xbyak

A JIT assembler for x86/x64 architectures supporting MMX, SSE (1-4), AVX (1-2, 512), FPU, APX, and AVX10.2
BSD 3-Clause "New" or "Revised" License
2.05k stars 278 forks source link

movzx eax, ah #155

Closed merryhime closed 2 years ago

merryhime commented 2 years ago

For the following code:

    movzx(eax, ah);

I expect the following to be emitted:

    0F B6 C4    ; movzx eax, ah

Unfortunately I get a bad combination error instead.

herumi commented 2 years ago

Thank you for the report. I don't remember why, but I was restricting it. I removed it at https://github.com/herumi/xbyak/commit/d224701f4a19704211879bae0eb80070d22b6bb6 . Would you try it?

herumi commented 2 years ago

I've merged it into the master branch.

merryhime commented 2 years ago

Thank you for the fix, and apologies for the delay in response. Verified.