0
0
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:
Cyrill Gorcunov
2018-12-23 13:17:58 +03:00
parent 8274623093
commit 929aa65385
4 changed files with 51 additions and 0 deletions

26
travis/test/clzero.asm Normal file
View 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
View File

@@ -0,0 +1 @@
<EFBFBD><EFBFBD>g<EFBFBD><EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>g<EFBFBD><EFBFBD>

21
travis/test/clzero.json Normal file
View 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"
}
]

View 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