]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] bytes, strings: fix comparison of long byte slices on s390x
authorbill_ofarrell <billo@ca.ibm.com>
Thu, 28 Jun 2018 22:39:37 +0000 (18:39 -0400)
committerIan Lance Taylor <iant@golang.org>
Mon, 16 Jul 2018 19:59:17 +0000 (19:59 +0000)
commit0931e9fef3d0a654a86fdee57a05f4937265e291
tree5eec5af866c58224c157473be6ed1accbefaacc9
parentb5375d70d1d626595ec68568b68cc28dddc859d1
[release-branch.go1.10] bytes, strings: fix comparison of long byte slices on s390x

The existing implementation of bytes.Compare on s390x doesn't work properly for slices longer
than 256 elements. This change fixes that. Added tests for long strings and slices of bytes.

Fixes #26117

Change-Id: If6d8b68ee6dbcf99a24f867a1d3438b1f208954f
Reviewed-on: https://go-review.googlesource.com/121495
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/124016
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/bytes/compare_test.go
src/runtime/asm_s390x.s
src/strings/compare_test.go