diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-10-15 23:06:04 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-10-15 23:06:45 +0300 |
commit | e24e18e6b91f6ae40c9f03fc155683127154f137 (patch) | |
tree | d8a0bbd1af8d14fcc78061e52063f5a9a1a3ebf5 | |
parent | b3233c77fcfb71007ae18b71054da64a700c3b8c (diff) | |
download | nasm-e24e18e6b91f6ae40c9f03fc155683127154f137.tar.gz nasm-e24e18e6b91f6ae40c9f03fc155683127154f137.tar.xz nasm-e24e18e6b91f6ae40c9f03fc155683127154f137.zip |
travis: add rdpid
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | travis/test/rdpid.asm | 21 | ||||
-rw-r--r-- | travis/test/rdpid.bin.t | 1 | ||||
-rw-r--r-- | travis/test/rdpid.json | 21 | ||||
-rw-r--r-- | travis/test/rdpid.stderr | 3 |
4 files changed, 46 insertions, 0 deletions
diff --git a/travis/test/rdpid.asm b/travis/test/rdpid.asm new file mode 100644 index 00000000..76d9fc26 --- /dev/null +++ b/travis/test/rdpid.asm @@ -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) diff --git a/travis/test/rdpid.bin.t b/travis/test/rdpid.bin.t new file mode 100644 index 00000000..cb2a431a --- /dev/null +++ b/travis/test/rdpid.bin.t @@ -0,0 +1 @@ +óÇøóÇûóÇùóÇù
\ No newline at end of file diff --git a/travis/test/rdpid.json b/travis/test/rdpid.json new file mode 100644 index 00000000..cbdd3e87 --- /dev/null +++ b/travis/test/rdpid.json @@ -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" + } +] diff --git a/travis/test/rdpid.stderr b/travis/test/rdpid.stderr new file mode 100644 index 00000000..f4976b65 --- /dev/null +++ b/travis/test/rdpid.stderr @@ -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 |