diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/exitrep.asm | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/test/exitrep.asm b/test/exitrep.asm index 4e1b6e3c..755f05d5 100644 --- a/test/exitrep.asm +++ b/test/exitrep.asm @@ -1,16 +1,40 @@ -%macro testrep 0.nolist +%macro testrep 0-1 %assign i 1 - %rep 4 + %rep %1 4 mov eax,i %if i==3 %exitrep %endif mov ebx,i + %warning in %?%1 iteration i %if i >= 3 %error iteration i should not be seen %endif %assign i i+1 %endrep + ret %endmacro -testrep +%macro testrep_nl 0-1.nolist + %assign i 1 + %rep %1 4 + mov eax,i + %if i==3 + %exitrep + %endif + %warning in %?%1 iteration i + mov ebx,i + %if i >= 3 + %error iteration i should not be seen + %endif + %assign i i+1 + %endrep + ret +%endmacro + + + testrep + testrep .nolist + + testrep_nl + testrep_nl .nolist |