mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
test: nasm-t -- Add clzero case
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
26
travis/test/clzero.asm
Normal file
26
travis/test/clzero.asm
Normal file
@@ -0,0 +1,26 @@
|
||||
bits 16
|
||||
|
||||
clzero
|
||||
clzero ax
|
||||
clzero eax
|
||||
%ifdef ERROR
|
||||
clzero rax
|
||||
%endif
|
||||
|
||||
bits 32
|
||||
|
||||
clzero
|
||||
clzero ax
|
||||
clzero eax
|
||||
%ifdef ERROR
|
||||
clzero rax
|
||||
%endif
|
||||
|
||||
bits 64
|
||||
|
||||
clzero
|
||||
%ifdef ERROR
|
||||
clzero ax
|
||||
%endif
|
||||
clzero eax
|
||||
clzero rax
|
1
travis/test/clzero.bin.t
Normal file
1
travis/test/clzero.bin.t
Normal file
@@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD>g<EFBFBD><EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD>
|
21
travis/test/clzero.json
Normal file
21
travis/test/clzero.json
Normal file
@@ -0,0 +1,21 @@
|
||||
[
|
||||
{
|
||||
"description": "Test CLZERO instruction (ax/eax/rax)",
|
||||
"id": "clzero",
|
||||
"format": "bin",
|
||||
"source": "clzero.asm",
|
||||
"option": "-Ox",
|
||||
"target": [
|
||||
{ "output": "clzero.bin" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test unsupported CLZERO instruction",
|
||||
"ref": "clzero",
|
||||
"option": "-Ox -DERROR",
|
||||
"target": [
|
||||
{ "stderr": "clzero.stderr.t" }
|
||||
],
|
||||
"error": "expected"
|
||||
}
|
||||
]
|
3
travis/test/clzero.stderr.t
Normal file
3
travis/test/clzero.stderr.t
Normal file
@@ -0,0 +1,3 @@
|
||||
./travis/test/clzero.asm:7: error: instruction not supported in 16-bit mode
|
||||
./travis/test/clzero.asm:16: error: instruction not supported in 32-bit mode
|
||||
./travis/test/clzero.asm:23: error: instruction not supported in 64-bit mode
|
Reference in New Issue
Block a user