NASM-2.09.10
[nasm/avx512.git] / test / br3066383.asm
blob09222ac7b450f8f9ae0e5e25fede0393e78b34a2
2 ; this is a for BR3005117
3 ; http://sourceforge.net/tracker/?func=detail&aid=3005117&group_id=6208&atid=106208
5 %macro b_struc 1-*
6 %push foo
7 %define %$strucname %1
8 %%top_%$strucname:
9 %rep %0 - 1
10 %rotate 1
11 resb %{$strucname}%1 - ($ - %%top_%$strucname)
12 %1:
13 %endrep
14 resb %{$strucname}_size - ($ - %%top_%$strucname)
15 %pop
16 %endmacro
18 struc timeval
19 .tv_sec resd 1
20 .tv_usec resd 1
21 endstruc
23 section .text
24 mov [timeval_struct.tv_sec], eax
26 section .bss
27 timeval_struct b_struc timeval, .tv_sec, .tv_usec
28 timeval_struct_len equ $ - timeval_struct
30 section .text
33 ; this is a test for BR3026808
34 ; http://sourceforge.net/tracker/?func=detail&aid=3026808&group_id=6208&atid=106208
36 %imacro proc 1
37 %push proc
38 %assign %$arg 1
39 %endmacro
41 %imacro arg 0-1 1
42 %assign %$arg %1+%$arg
43 %endmacro
45 %imacro endproc 0
46 %pop
47 %endmacro
49 proc Test
50 %$ARG arg
51 endproc
54 ; this is a test for BR3066383
55 ; http://sourceforge.net/tracker/?func=detail&aid=3066383&group_id=6208&atid=106208
57 %macro pp_local 1
58 %push
59 %assign %$_uses 0
60 %rep 4
61 %assign %$_ur%$_uses %$_uses
62 mov ecx, %$_ur%$_uses
63 %assign %$_uses %$_uses+1
64 %endrep
65 %pop
66 %endmacro
68 pp_local 1