You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Go are you using (go version)? go version devel +2c84188 Wed Apr 20 15:36:09 2016 +0800 linux/arm64
What operating system and processor architecture are you using (go env)? GOARCH="arm64" GOBIN="" GOEXE="" GOHOSTARCH="arm64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/zw/go" GORACE="" GOROOT="/home/zw/project/go" GOTOOLDIR="/home/zw/project/go/pkg/tool/linux_arm64" CC="gcc" GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build288440353=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1"
What did you do?
do constant division like: func divint64n(x int64) int64 { return x / 7 }
compile above code and dump it on arm64 linux.
What did you expect to see?
dumped code should not call div instruction for constant division.
What did you see instead?
dumped code calls div instruction for constant division.
The text was updated successfully, but these errors were encountered:
go version
)?go version devel +2c84188 Wed Apr 20 15:36:09 2016 +0800 linux/arm64
go env
)?GOARCH="arm64" GOBIN="" GOEXE="" GOHOSTARCH="arm64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/zw/go" GORACE="" GOROOT="/home/zw/project/go" GOTOOLDIR="/home/zw/project/go/pkg/tool/linux_arm64" CC="gcc" GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build288440353=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1"
do constant division like:
func divint64n(x int64) int64 { return x / 7 }
compile above code and dump it on arm64 linux.
dumped code should not call div instruction for constant division.
dumped code calls div instruction for constant division.
The text was updated successfully, but these errors were encountered: