mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
insns.dat: add "MOV reg64,imm32" as a special rule
Add "MOV reg64,imm32" as a special rule, to handle the case of "mov rax,dword <foo>", where <foo> is sign-extended; this is a 7-byte form, as opposed to "mov eax,<foo>" (5 bytes) and "mov rax,<foo>" (10 bytes). At some point, the optimizer needs to be able to handle these.
This commit is contained in:
parent
6372b9c5fc
commit
65e823978b
@ -775,6 +775,7 @@ MOV reg8,imm \10\xB0\21 8086,SM
|
||||
MOV reg16,imm \320\10\xB8\31 8086,SM
|
||||
MOV reg32,imm \321\10\xB8\41 386,SM
|
||||
MOV reg64,imm \324\10\xB8\55 X64,SM
|
||||
MOV reg64,imm32 \324\1\xC7\200\41 X64
|
||||
MOV rm8,imm \1\xC6\200\21 8086,SM
|
||||
MOV rm16,imm \320\1\xC7\200\31 8086,SM
|
||||
MOV rm32,imm \321\1\xC7\200\41 386,SM
|
||||
|
Loading…
x
Reference in New Issue
Block a user