aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test/br3392711.asm
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/br3392711.asm
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/br3392711.asm')
-rw-r--r--travis/test/br3392711.asm18
1 files changed, 18 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)