test: nasm-t -- Add zerobyte test

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-03 17:58:12 +03:00
parent 0060e40246
commit 149231f665
3 changed files with 32 additions and 0 deletions

21
travis/test/zerobyte.asm Normal file
View File

@ -0,0 +1,21 @@
bits 64
mov eax,bar-foo
foo:
add al,r10b
bar:
lldt ax
lldt r8w
ltr [rax]
sldt eax
sldt r8d
str eax
str rax
str r8d
str r8
verr ax
verr r8w
verw ax
verw r8w

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

Binary file not shown.

11
travis/test/zerobyte.json Normal file
View File

@ -0,0 +1,11 @@
[
{
"description": "Test for accidental duplication of REX prefixes",
"id": "zerobyte",
"format": "bin",
"source": "zerobyte.asm",
"target": [
{ "output": "zerobyte.bin" }
]
}
]