diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-03-01 13:23:52 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-03-01 13:23:52 -0800 |
commit | 55e06dead1b1012b130fc3660fcdbe9eccdc9633 (patch) | |
tree | 9e234a4898c211e1c737254e5f9a25aeb49eca41 | |
parent | 2d89477ef40dbc1b4b96693445e944f247f42887 (diff) | |
download | nasm-55e06dead1b1012b130fc3660fcdbe9eccdc9633.tar.gz |
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>
-rw-r--r-- | test/imm.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/imm.asm b/test/imm.asm index 39a7d315..6b24c880 100644 --- a/test/imm.asm +++ b/test/imm.asm @@ -9,3 +9,15 @@ 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 |