mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-11-08 23:27:15 -05:00
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>
59 lines
482 B
NASM
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
|