mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
6dfbddb6b0
It is more logical, it cleans up the code and it makes implicit operand size override prefixes come out in the same order as explicit ones instead of after all other prefixes. Suggested-by: H. Peter Anvin <hpa@zytor.com>
15 lines
323 B
NASM
15 lines
323 B
NASM
;Testname=unoptimized; Arguments=-O0 -fbin -obr3058845.bin; Files=stdout stderr br3058845.bin
|
|
;Testname=optimized; Arguments=-Ox -fbin -obr3058845.bin; Files=stdout stderr br3058845.bin
|
|
|
|
BITS 16
|
|
cmp ax, 0xFFFF
|
|
cmp eax, 0xFFFF_FFFF
|
|
|
|
BITS 32
|
|
cmp ax, 0xFFFF
|
|
cmp eax, 0xFFFF_FFFF
|
|
|
|
BITS 64
|
|
cmp ax, 0xFFFF
|
|
cmp eax, 0xFFFF_FFFF
|