Skip to content

Commit eed061f

Browse files
dr2chasebradfitz
authored andcommitted
cmd/compile: enable SSA for PowerPC 64 Big-endian
It passed tests once, if anything's wrong, better to fail sooner than later. Change-Id: Ibb1c5db3f4c5535a4ff4681fd157db77082c5041 Reviewed-on: https://go-review.googlesource.com/28982 Run-TryBot: David Chase <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 3ead499 commit eed061f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/compile/internal/gc/ssa.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func shouldssa(fn *Node) bool {
4040
if os.Getenv("SSATEST") == "" {
4141
return false
4242
}
43-
case "amd64", "amd64p32", "arm", "386", "arm64", "ppc64le", "mips64", "mips64le", "s390x":
43+
case "amd64", "amd64p32", "arm", "386", "arm64", "ppc64", "ppc64le", "mips64", "mips64le", "s390x":
4444
// Generally available.
4545
}
4646
if !ssaEnabled {

src/cmd/compile/internal/ssa/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func NewConfig(arch string, fe Frontend, ctxt *obj.Link, optimize bool) *Config
183183
c.FPReg = framepointerRegARM64
184184
c.hasGReg = true
185185
c.noDuffDevice = obj.GOOS == "darwin" // darwin linker cannot handle BR26 reloc with non-zero addend
186-
case "ppc64le":
186+
case "ppc64le", "ppc64":
187187
c.IntSize = 8
188188
c.PtrSize = 8
189189
c.lowerBlock = rewriteBlockPPC64

0 commit comments

Comments
 (0)