From c1c7e5902fda622d5d5870ed045407a9acd5666b Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 26 Feb 2025 21:03:15 +1100 Subject: [PATCH] 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 Reviewed-by: David Chase Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Keith Randall --- test/codegen/mathbits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.50.0