Skip to content

Commit c1c7e59

Browse files
4a6f656cgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-by: Keith Randall <[email protected]> Auto-Submit: Keith Randall <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 577bb3d commit c1c7e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/codegen/mathbits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func TrailingZeros(n uint) int {
372372
func TrailingZeros64(n uint64) int {
373373
// amd64/v1,amd64/v2:"BSFQ","MOVL\t\\$64","CMOVQEQ"
374374
// amd64/v3:"TZCNTQ"
375-
// 386:"BSFL"
375+
// 386:"BSFL","JNE"
376376
// arm64:"RBIT","CLZ"
377377
// loong64:"CTZV"
378378
// s390x:"FLOGR"

0 commit comments

Comments
 (0)