From 4f5b5a2c2e980fa642966635ee82de20da2b94c6 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 4 Nov 2018 20:05:33 +0300 Subject: [PATCH] test: nasm-t -- Add jmp64 test Signed-off-by: Cyrill Gorcunov --- travis/test/jmp64.asm | 17 +++++++++++++++++ travis/test/jmp64.bin.t | 1 + travis/test/jmp64.json | 11 +++++++++++ 3 files changed, 29 insertions(+) create mode 100644 travis/test/jmp64.asm create mode 100644 travis/test/jmp64.bin.t create mode 100644 travis/test/jmp64.json diff --git a/travis/test/jmp64.asm b/travis/test/jmp64.asm new file mode 100644 index 000000000..d5900f4be --- /dev/null +++ b/travis/test/jmp64.asm @@ -0,0 +1,17 @@ + bits 64 + jmp rcx + jmp [rax] + jmp qword [rax] + jmp near [rax] + jmp near qword [rax] + jmp far [rax] + jmp far dword [rax] + jmp far qword [rax] + call rcx + call [rax] + call qword [rax] + call near [rax] + call near qword [rax] + call far [rax] + call far dword [rax] + call far qword [rax] diff --git a/travis/test/jmp64.bin.t b/travis/test/jmp64.bin.t new file mode 100644 index 000000000..64436c919 --- /dev/null +++ b/travis/test/jmp64.bin.t @@ -0,0 +1 @@ +ÿáÿ ÿ ÿ ÿ Hÿ(ÿ(Hÿ(ÿÑÿÿÿÿHÿÿHÿ \ No newline at end of file diff --git a/travis/test/jmp64.json b/travis/test/jmp64.json new file mode 100644 index 000000000..76ce48bdf --- /dev/null +++ b/travis/test/jmp64.json @@ -0,0 +1,11 @@ +[ + { + "description": "Test jmp in 64 bit mode", + "id": "jmp64", + "format": "bin", + "source": "jmp64.asm", + "target": [ + { "output": "jmp64.bin" } + ] + } +]