1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:40:03 -07:00

cmd/internal/obj/ppc64, cmd/link/internal/ppc64: Change function alignment to 16

The Power processor manual states that "Branches not from the last instruction
of an aligned quadword and not to the first instruction of an aligned quadword
cause inefficiencies in the IBuffer". This changes the function alignment from 8
to 16 bytes to comply with that.

Fixes #18963

Change-Id: Ibce9bf8302110a86c6ab05948569af9ffdfcf4bb
Reviewed-on: https://go-review.googlesource.com/36390
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
This commit is contained in:
Carlos Eduardo Seo 2017-02-06 15:33:43 -02:00 committed by Lynn Boger
parent 3a2fee0389
commit 09b71d563a
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ type ctxt9 struct {
// Instruction layout.
const (
funcAlign = 8
funcAlign = 16
)
const (

View File

@ -64,7 +64,7 @@ package ppc64
const (
maxAlign = 32 // max data alignment
minAlign = 1 // min data alignment
funcAlign = 8
funcAlign = 16
)
/* Used by ../internal/ld/dwarf.go */