[nasm:nasm-2.15.xx] travis: add br3392711 test

nasm-bot for Cyrill Gorcunov gorcunov at gmail.com
Tue Aug 18 04:00:06 PDT 2020


Commit-ID:  57e0b3e56a4334423928c4cb3fde678c924dcc85
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=57e0b3e56a4334423928c4cb3fde678c924dcc85
Author:     Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Tue, 18 Aug 2020 13:59:12 +0300
Committer:  Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Tue, 18 Aug 2020 13:59:12 +0300

travis: add br3392711 test

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>


---
 travis/test/br3392711.asm  |  18 ++++++++++++++++++
 travis/test/br3392711.json |  12 ++++++++++++
 travis/test/br3392711.o.t  | Bin 0 -> 1024 bytes
 3 files changed, 30 insertions(+)

diff --git a/travis/test/br3392711.asm b/travis/test/br3392711.asm
new file mode 100644
index 00000000..435fc5f6
--- /dev/null
+++ b/travis/test/br3392711.asm
@@ -0,0 +1,18 @@
+;
+; In br33927711 we've not been expanding %?? and %*?? correctly
+;
+	section .text
+
+%define label(prefix, suffix) prefix %+ suffix
+
+label_1:
+	mov eax, label(%??, _1)
+label_2:
+	mov eax, label(%?, _2)
+
+%define label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789(prefix, suffix) prefix %+ suffix
+
+label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789_1:
+	mov eax, label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789(%??, _1)
+label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789_2:
+	mov eax, label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789(%??, _2)
diff --git a/travis/test/br3392711.json b/travis/test/br3392711.json
new file mode 100644
index 00000000..884d083a
--- /dev/null
+++ b/travis/test/br3392711.json
@@ -0,0 +1,12 @@
+[
+	{
+		"description": "Test br3392711 (%?? and %? expansion)",
+		"id": "br3392711",
+		"format": "elf64",
+		"source": "br3392711.asm",
+		"option": "-Ox",
+		"target": [
+			{ "output": "br3392711.o" }
+		]
+	}
+]
diff --git a/travis/test/br3392711.o.t b/travis/test/br3392711.o.t
new file mode 100644
index 00000000..ec025c98
Binary files /dev/null and b/travis/test/br3392711.o.t differ


More information about the Nasm-commits mailing list