0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-11-08 23:27:15 -05:00
Files
nasm/travis/test/ret.asm
H. Peter Anvin bf16907c9d travis: unbreak the ret.asm test
The ret.asm test was broken because the assembly expected -DERROR=1
whereas the run script provided -DERROR, masking all the actual
errors...

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-15 22:29:01 -07:00

59 lines
482 B
NASM

;; All the flavors of RET
%ifdef TEST_BITS_16
bits 16
ret
retn
retf
retw
retnw
retfw
retd
retnd
retfd
%ifdef ERROR
retq
retnq
retfq
%endif
%endif
%ifdef TEST_BITS_32
bits 32
ret
retn
retf
retw
retnw
retfw
retd
retnd
retfd
%ifdef 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
%ifdef ERROR
retd
retnd
%endif
%endif
retfd
retq
retnq
retfq