]> Cypherpunks repositories - gostls13.git/commit
internal/bytealg: use generic IndexByte on plan9/amd64
authorPhilip Silva <philip.silva@protonmail.com>
Mon, 10 Jul 2023 20:22:15 +0000 (22:22 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 20 Jul 2023 17:30:15 +0000 (17:30 +0000)
commitda7b4b01bdb6127ed78203d6f7015a454bd26c2f
tree00359b44edbbbb84a87cb94449dfaeb2a9f3c051
parent89699847bf29c9891c95c8c55f8b6bff82c8f4e2
internal/bytealg: use generic IndexByte on plan9/amd64

Use generic implementation of IndexByte/IndexByteString
on plan9/amd64 since the assembly implementation
uses SSE instructions which are classified as floating
point instructions and cannot be used in a note handler.
A similar issue was fixed in CL 100577.

This fixes runtime.TestBreakpoint.

Fixes #61087.

Change-Id: Id0c085e47da449be405ea04ab9b93518c4e2fde8
Reviewed-on: https://go-review.googlesource.com/c/go/+/508400
Reviewed-by: Heschi Kreinick <heschi@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David du Colombier <0intro@gmail.com>
src/internal/bytealg/indexbyte_amd64.s
src/internal/bytealg/indexbyte_generic.go
src/internal/bytealg/indexbyte_native.go