cmd/internal/obj/ppc64, cmd/link/internal/ppc64: change function alignment to 16 #18963
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8rc3
What operating system and processor architecture are you using (
go env
)?ppc64le, Linux
What did you do?
I noticed that cmd/internal/obj/ppc64/asm9.go and cmd/link/internal/ppc64/l.go set funcAlign to 8 bytes.
What did you expect to see?
The function alignment on Power should be 16 bytes, as stated by the User Manual: "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".
I'll submit a small change shortly to address this.
The text was updated successfully, but these errors were encountered: