mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
test: nasm-t -- Add loopoffs test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
9578690f5b
commit
1796822453
3 changed files with 27 additions and 0 deletions
9
travis/test/loopoffs.asm
Normal file
9
travis/test/loopoffs.asm
Normal 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
|
||||
1
travis/test/loopoffs.bin.t
Normal file
1
travis/test/loopoffs.bin.t
Normal 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
17
travis/test/loopoffs.json
Normal 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"
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue