From e6a3c72c79fdc71c159e6b0ecb8ed70b084541af Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 4 Nov 2018 01:11:46 +0300 Subject: [PATCH] test: nasm-t -- Add prefix66 test Signed-off-by: Cyrill Gorcunov --- travis/test/prefix66.asm | 26 ++++++++++++++++++++++++++ travis/test/prefix66.bin.t | 1 + travis/test/prefix66.json | 12 ++++++++++++ travis/test/prefix66.stderr | 6 ++++++ 4 files changed, 45 insertions(+) create mode 100644 travis/test/prefix66.asm create mode 100644 travis/test/prefix66.bin.t create mode 100644 travis/test/prefix66.json create mode 100644 travis/test/prefix66.stderr diff --git a/travis/test/prefix66.asm b/travis/test/prefix66.asm new file mode 100644 index 00000000..acd63bf3 --- /dev/null +++ b/travis/test/prefix66.asm @@ -0,0 +1,26 @@ +BITS 16 +cmp ax, 1 +o16 cmp ax, 1 +o32 cmp ax, 1 + +cmp eax, 1 +o16 cmp eax, 1 +o32 cmp eax, 1 + +BITS 32 +cmp ax, 1 +o16 cmp ax, 1 +o32 cmp ax, 1 + +cmp eax, 1 +o16 cmp eax, 1 +o32 cmp eax, 1 + +BITS 64 +cmp ax, 1 +o16 cmp ax, 1 +o32 cmp ax, 1 + +cmp eax, 1 +o16 cmp eax, 1 +o32 cmp eax, 1 diff --git a/travis/test/prefix66.bin.t b/travis/test/prefix66.bin.t new file mode 100644 index 00000000..2f40dc00 --- /dev/null +++ b/travis/test/prefix66.bin.t @@ -0,0 +1 @@ +ƒøƒøfƒøfƒøƒøfƒøfƒøfƒøƒøƒøfƒøƒøfƒøfƒøƒøƒøfƒøƒø \ No newline at end of file diff --git a/travis/test/prefix66.json b/travis/test/prefix66.json new file mode 100644 index 00000000..fd100e32 --- /dev/null +++ b/travis/test/prefix66.json @@ -0,0 +1,12 @@ +[ + { + "description": "Test for 0x66 prefixes", + "id": "prefix66", + "format": "bin", + "source": "prefix66.asm", + "target": [ + { "output": "prefix66.bin" }, + { "stderr": "prefix66.stderr" } + ] + } +] diff --git a/travis/test/prefix66.stderr b/travis/test/prefix66.stderr new file mode 100644 index 00000000..a8767e25 --- /dev/null +++ b/travis/test/prefix66.stderr @@ -0,0 +1,6 @@ +./travis/test/prefix66.asm:4: warning: invalid operand size prefix +./travis/test/prefix66.asm:7: warning: invalid operand size prefix +./travis/test/prefix66.asm:13: warning: invalid operand size prefix +./travis/test/prefix66.asm:16: warning: invalid operand size prefix +./travis/test/prefix66.asm:22: warning: invalid operand size prefix +./travis/test/prefix66.asm:25: warning: invalid operand size prefix \ No newline at end of file