aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/mathbits.go
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2019-08-30 06:24:58 +0000
committerDaniel Martí <mvdan@mvdan.cc>2019-08-30 17:37:00 +0000
commit8d5197d818b21290cfbf0ded381309ac1456cf60 (patch)
tree092a3940c55ae7caacf876e9a370b98000ae8ff4 /test/codegen/mathbits.go
parentba068c1a6f77eec17571d83c4c693674006a5fff (diff)
downloadgo-8d5197d818b21290cfbf0ded381309ac1456cf60.tar.xz
cmd/compile: optimize 386's math.bits.TrailingZeros16
This CL reverts CL 192097 and fixes the issue in CL 189277. Change-Id: Icd271262e1f5019a8e01c91f91c12c1261eeb02b Reviewed-on: https://go-review.googlesource.com/c/go/+/192519 Run-TryBot: Ben Shi <powerman1st@163.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/codegen/mathbits.go')
-rw-r--r--test/codegen/mathbits.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/codegen/mathbits.go b/test/codegen/mathbits.go
index ec04a66955..61e5db56e1 100644
--- a/test/codegen/mathbits.go
+++ b/test/codegen/mathbits.go
@@ -298,6 +298,7 @@ func TrailingZeros32(n uint32) int {
func TrailingZeros16(n uint16) int {
// amd64:"BSFL","BTSL\\t\\$16"
+ // 386:"BSFL\t"
// arm:"ORR\t\\$65536","CLZ",-"MOVHU\tR"
// arm64:"ORR\t\\$65536","RBITW","CLZW",-"MOVHU\tR",-"RBIT\t",-"CLZ\t"
// s390x:"FLOGR","OR\t\\$65536"