aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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