From 75798e8ada7fcb286f633618ac2f55ad5240ed97 Mon Sep 17 00:00:00 2001 From: Martin Möhrmann Date: Tue, 6 Nov 2018 17:00:04 +0100 Subject: runtime: make processor capability variable naming platform specific MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- test/codegen/mathbits.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/codegen/mathbits.go') 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" -- cgit v1.3