nasm/test/exitrep.asm
H. Peter Anvin d03a6c8ffe preproc: fix the detection of the >= operator
There are *four* operators starting with ">": > >> >>> and >=.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2019-10-07 21:29:05 -07:00

17 lines
226 B
NASM

%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