0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00

travis: add v4

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2020-08-25 18:12:09 +03:00
parent 40650a357a
commit 6691653710
4 changed files with 40 additions and 0 deletions

16
travis/test/v4.asm Normal file
View File

@@ -0,0 +1,16 @@
bits 64
v4fmaddps zmm0,zmm1+3,[rax]
v4fnmaddps zmm2,zmm3,[rax]
v4fmaddss zmm4,zmm5+3,[rax]
v4fnmaddss zmm6,zmm7+3,[rax]
v4dpwssds zmm8,zmm9,[rax]
v4dpwssd zmm10,zmm11+3,[rax]
v4dpwssd zmm10+0,zmm11+3,[rax]
%ifdef ERROR
v4dpwssd zmm10+1,zmm11+3,[rax]
v4dpwssd zmm10,zmm11+4,[rax]
v4dpwssd zmm10,zmm11+7,[rax]
%endif

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

Binary file not shown.

21
travis/test/v4.json Normal file
View File

@@ -0,0 +1,21 @@
[
{
"description": "Test v4 instructions",
"id": "v4",
"format": "bin",
"source": "v4.asm",
"option": "-Ox",
"target": [
{ "output": "v4.bin" }
]
},
{
"description": "Test v4 instructions (error)",
"ref": "v4",
"option": "-DERROR -o v4.bin",
"target": [
{ "stderr": "v4.stderr" }
],
"error": "expected"
}
]

3
travis/test/v4.stderr Normal file
View File

@@ -0,0 +1,3 @@
./travis/test/v4.asm:13: error: register set not valid for operand
./travis/test/v4.asm:14: error: invalid register set size
./travis/test/v4.asm:15: error: invalid register set size