mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-15 09:09:58 +08:00
55e06dead1
A few more combinations of immediates that can or should be converted. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
24 lines
401 B
NASM
24 lines
401 B
NASM
bits 64
|
|
|
|
mov eax,1
|
|
mov eax,-1
|
|
mov eax,0x11111111
|
|
mov ecx,2
|
|
add ecx,-6
|
|
add ecx,strict dword -6
|
|
add ecx,4
|
|
add ecx,strict dword 4
|
|
add ecx,10000
|
|
xor ecx,0xffffffff
|
|
xor ecx,dword 0xffffffff
|
|
xor ecx,strict dword 0xffffffff
|
|
xor ecx,-1
|
|
xor ecx,dword -1
|
|
xor ecx,strict dword -1
|
|
add edx,byte ($-$$)
|
|
%ifnidn __OUTPUT_FORMAT__,bin
|
|
extern foo, bar
|
|
add eax,byte foo
|
|
add edx,byte (bar-$$)
|
|
%endif
|