mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
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>
This commit is contained in:
parent
e7f4e0e229
commit
7f688841ce
26
test/clzero.asm
Normal file
26
test/clzero.asm
Normal file
@ -0,0 +1,26 @@
|
||||
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
|
@ -5196,6 +5196,9 @@ PCOMMIT void [ 66 0f ae f8]
|
||||
|
||||
; AMD Zen v1
|
||||
CLZERO void [ 0f 01 fc] FUTURE,AMD
|
||||
CLZERO reg_ax [-: a16 0f 01 fc] FUTURE,AMD,ND,NOLONG
|
||||
CLZERO reg_eax [-: a32 0f 01 fc] FUTURE,AMD,ND
|
||||
CLZERO reg_rax [-: a64 0f 01 fc] FUTURE,AMD,ND,X64
|
||||
|
||||
;# Processor trace write
|
||||
PTWRITE rm32 [m: np 0f ae /4] FUTURE
|
||||
|
Loading…
Reference in New Issue
Block a user