summaryrefslogtreecommitdiff
path: root/test/weirdpaste.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-08 14:02:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-08 14:02:25 -0700
commit6125b624037a73f621295ff8bce0baffe9cb57ee (patch)
tree6dc8699d1b126d328670955525845deee77d13d5 /test/weirdpaste.asm
parent93f77ac51a8258d5871127c15bb7b59a49d0dca2 (diff)
downloadnasm-6125b624037a73f621295ff8bce0baffe9cb57ee.tar.gz
preproc: fix more token pasting cases
"+" can be a separate token that ends up having to get pulled into the middle of a floating-point constant. It's not even that strange. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'test/weirdpaste.asm')
-rw-r--r--test/weirdpaste.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/weirdpaste.asm b/test/weirdpaste.asm
index c6e98150..529298ba 100644
--- a/test/weirdpaste.asm
+++ b/test/weirdpaste.asm
@@ -12,3 +12,14 @@
%endmacro
dx foo, bar
+
+%macro df 2
+%assign xy __float32__(%1e+%2)
+ dd xy
+ dd %1e+%2
+%endmacro
+
+ df 1, 36
+ df 33, 20
+ df 0, 2
+ df 1.2, 5