aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/mathbits.go
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2018-11-06 17:00:04 +0100
committerMartin Möhrmann <martisch@uos.de>2018-11-14 20:30:31 +0000
commit75798e8ada7fcb286f633618ac2f55ad5240ed97 (patch)
tree4e3b17182231c1adb49672527654ffe560473764 /test/codegen/mathbits.go
parent529ea7c0de1f9e582280c73031ae870f868e7908 (diff)
downloadgo-75798e8ada7fcb286f633618ac2f55ad5240ed97.tar.xz
runtime: make processor capability variable naming platform specific
The current support_XXX variables are specific for the amd64 and 386 platforms. Prefix processor capability variables by architecture to have a consistent naming scheme and avoid reuse of the existing variables for new platforms. This also aligns naming of runtime variables closer with internal/cpu processor capability variable names. Change-Id: I3eabb29a03874678851376185d3a62e73c1aff1d Reviewed-on: https://go-review.googlesource.com/c/91435 Run-TryBot: Martin Möhrmann <martisch@uos.de> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/codegen/mathbits.go')
-rw-r--r--test/codegen/mathbits.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go
index 977cbe6eb1..85d5bdea33 100644
--- a/test/codegen/mathbits.go
+++ b/test/codegen/mathbits.go
@@ -101,7 +101,7 @@ func Len8(n uint8) int {
// -------------------- //
func OnesCount(n uint) int {
- // amd64:"POPCNTQ",".*support_popcnt"
+ // amd64:"POPCNTQ",".*x86HasPOPCNT"
// arm64:"VCNT","VUADDLV"
// s390x:"POPCNT"
// ppc64:"POPCNTD"
@@ -110,7 +110,7 @@ func OnesCount(n uint) int {
}
func OnesCount64(n uint64) int {
- // amd64:"POPCNTQ",".*support_popcnt"
+ // amd64:"POPCNTQ",".*x86HasPOPCNT"
// arm64:"VCNT","VUADDLV"
// s390x:"POPCNT"
// ppc64:"POPCNTD"
@@ -119,7 +119,7 @@ func OnesCount64(n uint64) int {
}
func OnesCount32(n uint32) int {
- // amd64:"POPCNTL",".*support_popcnt"
+ // amd64:"POPCNTL",".*x86HasPOPCNT"
// arm64:"VCNT","VUADDLV"
// s390x:"POPCNT"
// ppc64:"POPCNTW"
@@ -128,7 +128,7 @@ func OnesCount32(n uint32) int {
}
func OnesCount16(n uint16) int {
- // amd64:"POPCNTL",".*support_popcnt"
+ // amd64:"POPCNTL",".*x86HasPOPCNT"
// arm64:"VCNT","VUADDLV"
// s390x:"POPCNT"
// ppc64:"POPCNTW"