travis: add imm

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2020-10-15 22:12:02 +03:00
parent 8ff5cecc29
commit 4431776fc0
3 changed files with 38 additions and 0 deletions

26
travis/test/imm.asm Normal file
View 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
View 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

Binary file not shown.