diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-11-11 18:18:59 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-11-11 21:43:46 +0300 |
commit | 323f5ae7650091731c38f447a98b5272cc23cc67 (patch) | |
tree | e5e468e95f54b133610f29ce9d0f343c2d13f6ce /travis | |
parent | 27fe12d46e9b66cb0ade16602046d8335e2c494f (diff) | |
download | nasm-323f5ae7650091731c38f447a98b5272cc23cc67.tar.gz |
test: nasm-t -- Add br3066383
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r-- | travis/test/br3066383.asm | 68 | ||||
-rw-r--r-- | travis/test/br3066383.bin.t | bin | 0 -> 28 bytes | |||
-rw-r--r-- | travis/test/br3066383.json | 12 |
3 files changed, 80 insertions, 0 deletions
diff --git a/travis/test/br3066383.asm b/travis/test/br3066383.asm new file mode 100644 index 00000000..09222ac7 --- /dev/null +++ b/travis/test/br3066383.asm @@ -0,0 +1,68 @@ +; +; this is a for BR3005117 +; http://sourceforge.net/tracker/?func=detail&aid=3005117&group_id=6208&atid=106208 +; +%macro b_struc 1-* + %push foo + %define %$strucname %1 +%%top_%$strucname: + %rep %0 - 1 + %rotate 1 + resb %{$strucname}%1 - ($ - %%top_%$strucname) +%1: + %endrep + resb %{$strucname}_size - ($ - %%top_%$strucname) + %pop +%endmacro + +struc timeval + .tv_sec resd 1 + .tv_usec resd 1 +endstruc + +section .text + mov [timeval_struct.tv_sec], eax + +section .bss + timeval_struct b_struc timeval, .tv_sec, .tv_usec + timeval_struct_len equ $ - timeval_struct + +section .text + +; +; this is a test for BR3026808 +; http://sourceforge.net/tracker/?func=detail&aid=3026808&group_id=6208&atid=106208 +; +%imacro proc 1 + %push proc + %assign %$arg 1 +%endmacro + +%imacro arg 0-1 1 + %assign %$arg %1+%$arg +%endmacro + +%imacro endproc 0 + %pop +%endmacro + +proc Test + %$ARG arg +endproc + +; +; this is a test for BR3066383 +; http://sourceforge.net/tracker/?func=detail&aid=3066383&group_id=6208&atid=106208 +; +%macro pp_local 1 + %push + %assign %$_uses 0 + %rep 4 + %assign %$_ur%$_uses %$_uses + mov ecx, %$_ur%$_uses + %assign %$_uses %$_uses+1 + %endrep + %pop +%endmacro + +pp_local 1 diff --git a/travis/test/br3066383.bin.t b/travis/test/br3066383.bin.t Binary files differnew file mode 100644 index 00000000..be139fb2 --- /dev/null +++ b/travis/test/br3066383.bin.t diff --git a/travis/test/br3066383.json b/travis/test/br3066383.json new file mode 100644 index 00000000..9aea9a24 --- /dev/null +++ b/travis/test/br3066383.json @@ -0,0 +1,12 @@ +[ + { + "description": "Test macro expansion", + "id": "br3066383", + "format": "bin", + "source": "br3066383.asm", + "option": "-Ox", + "target": [ + { "output": "br3066383.bin" } + ] + } +] |