mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
Add rdpid instruction
Add the RDPID instruction, documented in the Intel SDM October 2016. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
48fe2eea27
commit
c7ea29b247
@ -5114,6 +5114,11 @@ VXORPS zmmreg|mask|z,zmmreg*,zmmrm512|b32 [rvm:fv: evex.nds.512.0f.w0
|
||||
RDPKRU void [ 0f 01 ee] X64,FUTURE
|
||||
WRPKRU void [ 0f 01 ef] X64,FUTURE
|
||||
|
||||
; Read Processor ID
|
||||
RDPID reg32 [m: f3 0f c7 /7] NOLONG,FUTURE
|
||||
RDPID reg64 [m: o64nw f3 0f c7 /7] X64,FUTURE
|
||||
RDPID reg32 [m: f3 0f c7 /7] X64,UNDOC,FUTURE
|
||||
|
||||
; New memory instructions
|
||||
CLFLUSHOPT mem [m: 66 0f ae /7] FUTURE
|
||||
CLWB mem [m: 66 0f ae /6] FUTURE
|
||||
|
21
test/rdpid.asm
Normal file
21
test/rdpid.asm
Normal file
@ -0,0 +1,21 @@
|
||||
%ifdef ERROR
|
||||
%define ERR(x) x
|
||||
%else
|
||||
%define ERR(x)
|
||||
%endif
|
||||
|
||||
bits 16
|
||||
|
||||
rdpid eax
|
||||
ERR(rdpid ax)
|
||||
|
||||
bits 32
|
||||
|
||||
rdpid ebx
|
||||
ERR(rdpid bx)
|
||||
|
||||
bits 64
|
||||
|
||||
rdpid rcx
|
||||
rdpid ecx
|
||||
ERR(rdpid cx)
|
Loading…
Reference in New Issue
Block a user