test: nasm-t -- Add test67

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-03 22:00:28 +03:00
parent e5ebeac478
commit 41985ad93e
3 changed files with 52 additions and 0 deletions

35
travis/test/test67.asm Normal file
View file

@ -0,0 +1,35 @@
bits 16
mov ax,[bx]
mov ax,[foo]
mov ax,[word foo]
mov ax,[dword foo]
mov ax,[ebx]
rep movsb
a16 rep movsb
a32 rep movsb
a32 mov ax,bx
bits 32
mov ax,[bx]
mov ax,[foo]
mov ax,[word foo]
mov ax,[dword foo]
mov ax,[ebx]
rep movsb
a16 rep movsb
a32 rep movsb
bits 64
mov ax,[rbx]
mov ax,[foo]
mov ax,[qword foo]
mov ax,[dword foo]
mov ax,[ebx]
rep movsb
a32 rep movsb
a64 rep movsb
foo:

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

Binary file not shown.

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

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