From 41985ad93e2633d5653a2693ca13228347ac71b4 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sat, 3 Nov 2018 22:00:28 +0300 Subject: [PATCH] test: nasm-t -- Add test67 Signed-off-by: Cyrill Gorcunov --- travis/test/test67.asm | 35 +++++++++++++++++++++++++++++++++++ travis/test/test67.bin.t | Bin 0 -> 98 bytes travis/test/test67.json | 17 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 travis/test/test67.asm create mode 100644 travis/test/test67.bin.t create mode 100644 travis/test/test67.json diff --git a/travis/test/test67.asm b/travis/test/test67.asm new file mode 100644 index 00000000..5917a1bd --- /dev/null +++ b/travis/test/test67.asm @@ -0,0 +1,35 @@ + bits 16 + + mov ax,[bx] + mov ax,[foo] + mov ax,[word foo] + mov ax,[dword foo] + mov ax,[ebx] + rep movsb + a16 rep movsb + a32 rep movsb + a32 mov ax,bx + + bits 32 + + mov ax,[bx] + mov ax,[foo] + mov ax,[word foo] + mov ax,[dword foo] + mov ax,[ebx] + rep movsb + a16 rep movsb + a32 rep movsb + + bits 64 + + mov ax,[rbx] + mov ax,[foo] + mov ax,[qword foo] + mov ax,[dword foo] + mov ax,[ebx] + rep movsb + a32 rep movsb + a64 rep movsb + +foo: diff --git a/travis/test/test67.bin.t b/travis/test/test67.bin.t new file mode 100644 index 0000000000000000000000000000000000000000..b3723e95bb2810468ccb7506da26197f8577a0f7 GIT binary patch literal 98 zcmeBXUzo%IMCm}xz>wa}{CNowrY}kFypfjP&7KApP6Nq8nP3&^Kt*ZY%xT>$svvC; ODIkLZE&?$Lqz(WgbtCBj literal 0 HcmV?d00001 diff --git a/travis/test/test67.json b/travis/test/test67.json new file mode 100644 index 00000000..426e9d5f --- /dev/null +++ b/travis/test/test67.json @@ -0,0 +1,17 @@ +[ + { + "description": "Test for 0x67 prefixes (-Ox)", + "id": "test67", + "format": "bin", + "source": "test67.asm", + "option": "-Ox", + "target": [ + { "output": "test67.bin" } + ] + }, + { + "description": "Test for 0x67 prefixes (-O0)", + "ref": "test67", + "option": "-O0" + } +]