Skip to content

Commit 4431776

Browse files
committed
travis: add imm
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
1 parent 8ff5cec commit 4431776

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

travis/test/imm.asm

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
bits 64
2+
3+
mov eax,1
4+
mov eax,-1
5+
mov eax,0x11111111
6+
mov ecx,2
7+
add ecx,-6
8+
add ecx,strict dword -6
9+
add ecx,4
10+
add ecx,strict dword 4
11+
add ecx,10000
12+
xor ecx,0xffffffff
13+
xor ecx,dword 0xffffffff
14+
xor ecx,strict dword 0xffffffff
15+
xor ecx,-1
16+
xor ecx,dword -1
17+
xor ecx,strict dword -1
18+
add edx,byte ($-$$)
19+
20+
mov rax, 0xfafafafaafafafaf
21+
22+
%ifnidn __OUTPUT_FORMAT__,bin
23+
extern foo, bar
24+
add eax,byte foo
25+
add edx,byte (bar-$$)
26+
%endif

travis/test/imm.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"description": "Test immediates",
4+
"id": "imm",
5+
"format": "elf64",
6+
"source": "imm.asm",
7+
"option": "-Ox",
8+
"target": [
9+
{ "output": "imm.o" }
10+
]
11+
}
12+
]

travis/test/imm.o.t

800 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)