travis: add hle

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2020-10-15 00:51:15 +03:00
parent 9d68a8babd
commit daa534e55c
4 changed files with 36 additions and 0 deletions

19
travis/test/hle.asm Normal file
View file

@ -0,0 +1,19 @@
bits 32
xacquire lock add [esi],eax
xacquire xchg [eax],ebx
xrelease lock mov [eax],ecx
xrelease mov [eax],ecx
xacquire add ecx,[eax]
xrelease mov [eax],ecx
; Different opcodes!
mov [sym],eax
xrelease mov [sym],eax
xacquire mov [sym],eax
mov [sym],al
xrelease mov [sym],al
xacquire mov [sym],al
sym dd 0

BIN
travis/test/hle.bin.t Normal file

Binary file not shown.

13
travis/test/hle.json Normal file
View file

@ -0,0 +1,13 @@
[
{
"description": "Test hle instructions",
"id": "hle",
"format": "bin",
"source": "hle.asm",
"option": "-Ox",
"target": [
{ "output": "hle.bin" },
{ "stderr": "hle.stderr" }
]
}
]

4
travis/test/hle.stderr Normal file
View file

@ -0,0 +1,4 @@
./travis/test/hle.asm:5: warning: instruction is not lockable [-w+lock]
./travis/test/hle.asm:7: warning: xacquire invalid with this instruction [-w+hle]
./travis/test/hle.asm:13: warning: xacquire invalid with this instruction [-w+hle]
./travis/test/hle.asm:17: warning: xacquire invalid with this instruction [-w+hle]