go/src/internal/bytealg
Lynn Boger e23322e2cc cmd/internal/obj/ppc64: modify PCALIGN to ensure alignment
The initial purpose of PCALIGN was to identify code
where it would be beneficial to align code for performance,
but avoid cases where too many NOPs were added. On p10, it
is now necessary to enforce a certain alignment in some
cases, so the behavior of PCALIGN needs to be slightly
different.  Code will now be aligned to the value specified
on the PCALIGN instruction regardless of number of NOPs added,
which is more intuitive and consistent with power assembler
alignment directives.

This also adds 64 as a possible alignment value.

The existing values used in PCALIGN were modified according to
the new behavior.

A testcase was updated and performance testing was done to
verify that this does not adversely affect performance.

Change-Id: Iad1cf5ff112e5bfc0514f0805be90e24095e932b
Reviewed-on: https://go-review.googlesource.com/c/go/+/485056
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Archana Ravindar <aravind5@in.ibm.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Paul Murphy <murp@ibm.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
2023-04-21 16:47:45 +00:00
..
bytealg.go bytes, strings: avoid unnecessary zero initialization 2023-02-27 19:11:00 +00:00
compare_386.s
compare_amd64.s
compare_arm.s
compare_arm64.s
compare_generic.go
compare_loong64.s internal/bytealg, runtime: align some loong64 asm loops to 16-byte boundaries 2023-04-07 20:21:15 +00:00
compare_mips64x.s
compare_mipsx.s
compare_native.go
compare_ppc64x.s cmd/internal/obj/ppc64: modify PCALIGN to ensure alignment 2023-04-21 16:47:45 +00:00
compare_riscv64.s internal/bytealg: simplify and improve compare on riscv64 2023-02-11 16:16:34 +00:00
compare_s390x.s
compare_wasm.s
count_amd64.s
count_arm.s
count_arm64.s
count_generic.go
count_native.go
count_ppc64x.s
count_riscv64.s
count_s390x.s
equal_386.s
equal_amd64.s
equal_arm.s
equal_arm64.s
equal_generic.go
equal_loong64.s internal/bytealg, runtime: align some loong64 asm loops to 16-byte boundaries 2023-04-07 20:21:15 +00:00
equal_mips64x.s
equal_mipsx.s
equal_native.go
equal_ppc64x.s cmd/internal/obj/ppc64: modify PCALIGN to ensure alignment 2023-04-21 16:47:45 +00:00
equal_riscv64.s
equal_s390x.s
equal_wasm.s
index_amd64.go
index_amd64.s
index_arm64.go
index_arm64.s
index_generic.go
index_native.go all: move //go: function directives directly above functions 2023-03-02 22:56:35 +00:00
index_ppc64x.go internal/bytealg: remove aix and linux build tags from ppc64 index code 2023-03-09 05:34:46 +00:00
index_ppc64x.s cmd/internal/obj/ppc64: modify PCALIGN to ensure alignment 2023-04-21 16:47:45 +00:00
index_s390x.go
index_s390x.s
indexbyte_386.s
indexbyte_amd64.s
indexbyte_arm.s
indexbyte_arm64.s
indexbyte_generic.go
indexbyte_loong64.s internal/bytealg, runtime: align some loong64 asm loops to 16-byte boundaries 2023-04-07 20:21:15 +00:00
indexbyte_mips64x.s
indexbyte_mipsx.s
indexbyte_native.go
indexbyte_ppc64x.s internal/bytealg: rewrite indexbytebody on PPC64 2023-04-21 16:10:29 +00:00
indexbyte_riscv64.s
indexbyte_s390x.s
indexbyte_wasm.s