0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00
nasm/travis/test/ret.asm
Cyrill Gorcunov 91d0980bfa travis: add ret
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 18:05:33 +03:00

62 lines
511 B
NASM

;; All the flavors of RET
%ifndef ERROR
%define ERROR 0
%endif
%ifdef TEST_BITS_16
bits 16
ret
retn
retf
retw
retnw
retfw
retd
retnd
retfd
%if ERROR
retq
retnq
retfq
%endif
%endif
%ifdef TEST_BITS_32
bits 32
ret
retn
retf
retw
retnw
retfw
retd
retnd
retfd
%if ERROR
retq
retnq
retfq
%endif
%endif
%ifdef TEST_BITS_64
bits 64
ret
retn
retf ; Probably should have been RETFQ, but: legacy...
retw
retnw
retfw
%if ERROR
retd
retnd
%endif
%endif
retfd
retq
retnq
retfq