nasm/test/imm.asm
H. Peter Anvin 55e06dead1 test/imm.asm: test more combinations of immediates
A few more combinations of immediates that can or should be converted.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2017-03-01 13:23:52 -08:00

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