mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
travis: add rdpid
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
b3233c77fc
commit
e24e18e6b9
21
travis/test/rdpid.asm
Normal file
21
travis/test/rdpid.asm
Normal 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
1
travis/test/rdpid.bin.t
Normal file
@ -0,0 +1 @@
|
||||
<EFBFBD>ا<EFBFBD><EFBFBD>ا<EFBFBD><EFBFBD>ا<EFBFBD><EFBFBD>ا<EFBFBD>
|
21
travis/test/rdpid.json
Normal file
21
travis/test/rdpid.json
Normal 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
3
travis/test/rdpid.stderr
Normal 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
|
Loading…
Reference in New Issue
Block a user