travis: add rdpid

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2020-10-15 23:06:04 +03:00
parent b3233c77fc
commit e24e18e6b9
4 changed files with 46 additions and 0 deletions

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

@ -0,0 +1,21 @@
%ifdef ERROR
%define ERR(x) x
%else
%define ERR(x)
%endif
bits 16
rdpid eax
ERR(rdpid ax)
bits 32
rdpid ebx
ERR(rdpid bx)
bits 64
rdpid rcx
rdpid ecx
ERR(rdpid cx)

1
travis/test/rdpid.bin.t Normal file
View File

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

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

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

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

@ -0,0 +1,3 @@
./travis/test/rdpid.asm:10: error: invalid combination of opcode and operands
./travis/test/rdpid.asm:15: error: invalid combination of opcode and operands
./travis/test/rdpid.asm:21: error: invalid combination of opcode and operands