0
1
mirror of https://github.com/golang/go synced 2025-05-08 03:47:36 +00:00

cmd/compile: teach prove about bitwise OR operation

Fixes .

Change-Id: Ifbb0effbca4ab7c0eb56069fee40edb564553c35
Reviewed-on: https://go-review.googlesource.com/c/go/+/410336
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Wayne Zuo
2022-06-05 13:22:29 +08:00
committed by Daniel Martí
parent d2e0587f77
commit 3680b5e9c4
2 changed files with 8 additions and 0 deletions
src/cmd/compile/internal/ssa
test

@ -1053,6 +1053,11 @@ func issue51622(b []byte) int {
return 0
}
func issue45928(x int) {
combinedFrac := (x) / (x | (1 << 31)) // ERROR "Proved Neq64$"
useInt(combinedFrac)
}
//go:noinline
func useInt(a int) {
}