aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-18 13:59:12 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-18 13:59:12 +0300
commit57e0b3e56a4334423928c4cb3fde678c924dcc85 (patch)
tree7cced2ec394560138e149b5a12014b6e2e09f1be /travis/test
parent7c88289e222dc5ef9f53f9e86ecaab1924744b88 (diff)
downloadnasm-57e0b3e56a4334423928c4cb3fde678c924dcc85.tar.gz
nasm-57e0b3e56a4334423928c4cb3fde678c924dcc85.tar.xz
nasm-57e0b3e56a4334423928c4cb3fde678c924dcc85.zip
travis: add br3392711 test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/br3392711.asm18
-rw-r--r--travis/test/br3392711.json12
-rw-r--r--travis/test/br3392711.o.tbin0 -> 1024 bytes
3 files changed, 30 insertions, 0 deletions
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
--- /dev/null
+++ b/travis/test/br3392711.o.t
Binary files differ