test: nasm-t -- Add loopoffs test

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-04 19:30:31 +03:00
parent 9578690f5b
commit 1796822453
3 changed files with 27 additions and 0 deletions

9
travis/test/loopoffs.asm Normal file
View file

@ -0,0 +1,9 @@
bits 16
delay: loop delay
loop $
delay2: a32 loop delay2
a32 loop $
delay3: loop delay3,ecx
loop $,ecx
delay4: a32 loop delay4,ecx
a32 loop $,ecx

View file

@ -0,0 +1 @@
<EFBFBD><EFBFBD>g<EFBFBD>g<EFBFBD>g<EFBFBD>g<EFBFBD>g<EFBFBD>g<EFBFBD>

17
travis/test/loopoffs.json Normal file
View file

@ -0,0 +1,17 @@
[
{
"description": "Test loop offsets (-Ox)",
"id": "loopoffs",
"format": "bin",
"source": "loopoffs.asm",
"option": "-Ox",
"target": [
{ "output": "loopoffs.bin" }
]
},
{
"description": "Test loop offsets (-O0)",
"ref": "loopoffs",
"option": "-O0"
}
]