Skip to content

[pull] master from golang:master#17

Merged
pull[bot] merged 1 commit intotrailofbits:masterfrom
golang:master
May 6, 2026
Merged

[pull] master from golang:master#17
pull[bot] merged 1 commit intotrailofbits:masterfrom
golang:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 6, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

… when retpoline

The simd api translates non-constant inputs to instructions that
require and immediate operand into switch tables.  This occurs
later in the pipeline than the retpoline guarded code that replaces
table switches with binary search.

Attempting to introduce Go simd code into the runtime triggered a test
that checked for retpoline correctness and found this problem.

The fix is to replace the table switch with a binary search where
the intrinsic is inserted, if retpoline is active.

This CL is adapted from part of a pending dev.simd CL for WASM support
that also needs binary-search-switches.

Change-Id: Ia9d38d09695307fa3955fe3d9348637935022278
Reviewed-on: https://go-review.googlesource.com/c/go/+/773900
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
@pull pull Bot locked and limited conversation to collaborators May 6, 2026
@pull pull Bot added the ⤵️ pull label May 6, 2026
@pull pull Bot merged commit 46e081f into trailofbits:master May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant