mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
travis: add imm
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
8ff5cecc29
commit
4431776fc0
3 changed files with 38 additions and 0 deletions
26
travis/test/imm.asm
Normal file
26
travis/test/imm.asm
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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 ($-$$)
|
||||
|
||||
mov rax, 0xfafafafaafafafaf
|
||||
|
||||
%ifnidn __OUTPUT_FORMAT__,bin
|
||||
extern foo, bar
|
||||
add eax,byte foo
|
||||
add edx,byte (bar-$$)
|
||||
%endif
|
||||
12
travis/test/imm.json
Normal file
12
travis/test/imm.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"description": "Test immediates",
|
||||
"id": "imm",
|
||||
"format": "elf64",
|
||||
"source": "imm.asm",
|
||||
"option": "-Ox",
|
||||
"target": [
|
||||
{ "output": "imm.o" }
|
||||
]
|
||||
}
|
||||
]
|
||||
BIN
travis/test/imm.o.t
Normal file
BIN
travis/test/imm.o.t
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue