summaryrefslogtreecommitdiff
path: root/test/exitrep.asm
blob: 4e1b6e3c0ee195e61a93d8611f19be0aae190d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%macro testrep 0.nolist
  %assign i 1
  %rep 4
    mov eax,i
    %if i==3
      %exitrep
    %endif
    mov ebx,i
    %if i >= 3
	%error iteration i should not be seen
    %endif
    %assign i i+1
  %endrep
%endmacro

testrep