nasm/test/rdpid.asm
H. Peter Anvin c7ea29b247 Add rdpid instruction
Add the RDPID instruction, documented in the Intel SDM October 2016.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2016-11-15 11:55:14 -08:00

22 lines
184 B
NASM

%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)