1
0
mirror of https://github.com/golang/go synced 2024-11-26 18:16:48 -07:00

internal/buildcfg: support GOPPC64=power10

This does not enable any new functionality. It should
behave identically to GOPPC64=power9.

Updates #44549

Change-Id: I9a860544527fcfe97cbaf89686459d40dcf9593e
Reviewed-on: https://go-review.googlesource.com/c/go/+/352791
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
This commit is contained in:
Paul E. Murphy 2021-07-08 16:30:41 -05:00 committed by Paul Murphy
parent 1aa5730f49
commit 0eb56ca468
4 changed files with 15 additions and 3 deletions

View File

@ -2171,7 +2171,7 @@
// Valid values are hardfloat (default), softfloat.
// GOPPC64
// For GOARCH=ppc64{,le}, the target ISA (Instruction Set Architecture).
// Valid values are power8 (default), power9.
// Valid values are power8 (default), power9, power10.
// GOWASM
// For GOARCH=wasm, comma-separated list of experimental WebAssembly features to use.
// Valid values are satconv, signext.

View File

@ -614,7 +614,7 @@ Architecture-specific environment variables:
Valid values are hardfloat (default), softfloat.
GOPPC64
For GOARCH=ppc64{,le}, the target ISA (Instruction Set Architecture).
Valid values are power8 (default), power9.
Valid values are power8 (default), power9, power10.
GOWASM
For GOARCH=wasm, comma-separated list of experimental WebAssembly features to use.
Valid values are satconv, signext.

View File

@ -23,11 +23,21 @@ env GOPPC64=power9
go list -f '{{context.ToolTags}}'
stdout 'ppc64.power8 ppc64.power9'
env GOARCH=ppc64
env GOPPC64=power10
go list -f '{{context.ToolTags}}'
stdout 'ppc64.power8 ppc64.power9 ppc64.power10'
env GOARCH=ppc64le
env GOPPC64=power9
go list -f '{{context.ToolTags}}'
stdout 'ppc64le.power8 ppc64le.power9'
env GOARCH=ppc64le
env GOPPC64=power10
go list -f '{{context.ToolTags}}'
stdout 'ppc64le.power8 ppc64le.power9 ppc64le.power10'
env GOARCH=386
env GO386=sse2
go list -f '{{context.ToolTags}}'

View File

@ -110,8 +110,10 @@ func goppc64() int {
return 8
case "power9":
return 9
case "power10":
return 10
}
Error = fmt.Errorf("invalid GOPPC64: must be power8, power9")
Error = fmt.Errorf("invalid GOPPC64: must be power8, power9, power10")
return int(defaultGOPPC64[len("power")] - '0')
}