nasm/test/clzero.asm
H. Peter Anvin 7f688841ce insns.dat: accept explicit ax/eax/rax operand to CLZERO
AMD documents this instruction with an rax operand. The error behavior
implies this is an address-size-sensitive instruction. Add support for
specifying the explicit operand, but consistent with normal ndisasm
behavior, don't disassemble the implicit operand.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2018-12-22 17:52:27 -08:00

26 lines
221 B
NASM

bits 16
clzero
clzero ax
clzero eax
%ifdef ERROR
clzero rax
%endif
bits 32
clzero
clzero ax
clzero eax
%ifdef ERROR
clzero rax
%endif
bits 64
clzero
%ifdef ERROR
clzero ax
%endif
clzero eax
clzero rax