mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
test: nasm-t -- Add zerobyte test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
0060e40246
commit
149231f665
21
travis/test/zerobyte.asm
Normal file
21
travis/test/zerobyte.asm
Normal 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
BIN
travis/test/zerobyte.bin.t
Normal file
Binary file not shown.
11
travis/test/zerobyte.json
Normal file
11
travis/test/zerobyte.json
Normal file
@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"description": "Test for accidental duplication of REX prefixes",
|
||||
"id": "zerobyte",
|
||||
"format": "bin",
|
||||
"source": "zerobyte.asm",
|
||||
"target": [
|
||||
{ "output": "zerobyte.bin" }
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user