aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/mathbits.go
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2025-02-26 21:03:15 +1100
committerGopher Robot <gobot@golang.org>2025-03-14 15:04:38 -0700
commitc1c7e5902fda622d5d5870ed045407a9acd5666b (patch)
treec2bc34b2293fdace59d12d651eaec83f64d9bb2d /test/codegen/mathbits.go
parent577bb3d0ce576b2ca311e58dd942f189838b80fc (diff)
downloadgo-c1c7e5902fda622d5d5870ed045407a9acd5666b.tar.xz
test/codegen: tighten the TrailingZeros64 test on 386
Make the TrailingZeros64 code generation check more specific for 386. Just checking for BSFL will match both the generic 64 bit decomposition and the custom 386 lowering. Change-Id: I62076f1889af0ef1f29704cba01ab419cae0c6e3 Reviewed-on: https://go-review.googlesource.com/c/go/+/656996 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/codegen/mathbits.go')
-rw-r--r--test/codegen/mathbits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go
index 78556c636f..1cee39283d 100644
--- a/test/codegen/mathbits.go
+++ b/test/codegen/mathbits.go
@@ -372,7 +372,7 @@ func TrailingZeros(n uint) int {
func TrailingZeros64(n uint64) int {
// amd64/v1,amd64/v2:"BSFQ","MOVL\t\\$64","CMOVQEQ"
// amd64/v3:"TZCNTQ"
- // 386:"BSFL"
+ // 386:"BSFL","JNE"
// arm64:"RBIT","CLZ"
// loong64:"CTZV"
// s390x:"FLOGR"