go/src/strings
Archana R 6774ddfec7 internal/bytealg: fix bug in index function for ppc64le/power9
The index function was not handling certain corner cases where there
were two more bytes to be examined in the tail end of the string to
complete the comparison. Fix code to ensure that when the string has
to be shifted two more times the correct bytes are examined.
Also hoisted vsplat to V10 so that all paths use the correct value.
Some comments had incorrect register names and corrected the same.
Added the strings that were failing to strings test for verification.

Fixes #56457

Change-Id: Idba7cbc802e3d73c8f4fe89309871cc8447792f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/446135
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Archana Ravindar <ravindararchana@gmail.com>
2022-10-31 12:52:07 +00:00
..
builder.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
builder_test.go strings: add a test case of growLen is negative 2022-09-13 17:39:52 +00:00
clone.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
clone_test.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
compare.go
compare_test.go strings: simplify code using unsafe.StringData 2022-09-07 01:33:55 +00:00
example_test.go strings: document the use of simple case-folding in EqualFold 2022-04-02 06:48:45 +00:00
export_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
reader.go
reader_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
replace.go strings: reduce allocation for byteReplacer 2022-08-19 16:32:49 +00:00
replace_test.go
search.go
search_test.go
strings.go bytes,strings: optimize Repeat 2022-09-27 16:55:15 +00:00
strings_test.go internal/bytealg: fix bug in index function for ppc64le/power9 2022-10-31 12:52:07 +00:00