]> Cypherpunks repositories - gostls13.git/commit
cmd/asm,cmd/internal/obj/x86: add RDPID instruction to x86 assembler
authorJoel Sing <joel@sing.id.au>
Thu, 6 Apr 2023 20:15:59 +0000 (06:15 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 11 Apr 2023 18:32:50 +0000 (18:32 +0000)
commit05cd6cbb98a78f04fcfe018527fc8a50364bd0ee
treeada47d4e5878ead735b6c428720ceffc28a5ab0c
parent0d82f584c223fb045496f3e063bf93416a24e0b0
cmd/asm,cmd/internal/obj/x86: add RDPID instruction to x86 assembler

Add support for the Read Processor ID (RDPID) instruction to the x86
assembler. This returns the current logical processor's ID in the
specified register, as a faster alternative to RDTSCP.

Fixes #56525

Change-Id: I43482e42431dfc385ce2e7f6d44b9746b0cc4548
Reviewed-on: https://go-review.googlesource.com/c/go/+/482955
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/asm/internal/asm/testdata/386enc.s
src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
src/cmd/asm/internal/asm/testdata/amd64error.s
src/cmd/internal/obj/x86/aenum.go
src/cmd/internal/obj/x86/anames.go
src/cmd/internal/obj/x86/asm6.go
src/cmd/internal/obj/x86/obj6.go