aboutsummaryrefslogtreecommitdiff
path: root/test/phiopt.go
diff options
context:
space:
mode:
authorAlexandru Moșoi <brtzsnr@gmail.com>2016-04-24 21:21:07 +0200
committerAlexandru Moșoi <alexandru@mosoi.ro>2016-04-25 20:43:04 +0000
commit8b92397bcdcd5d6de3f72951a5514933fee32eb2 (patch)
tree97a2e3d0f60e794590dd339cd1e72ab28ea26cc2 /test/phiopt.go
parent0436a89a2c5afad41356dc1dff7c745cd30636a7 (diff)
downloadgo-8b92397bcdcd5d6de3f72951a5514933fee32eb2.tar.gz
go-8b92397bcdcd5d6de3f72951a5514933fee32eb2.zip
cmd/compile: introduce bool operations.
Introduce OrB, EqB, NeqB, AndB to handle bool operations. Change-Id: I53e4d5125a8090d5eeb4576db619103f19fff58d Reviewed-on: https://go-review.googlesource.com/22412 Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/phiopt.go')
-rw-r--r--test/phiopt.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/phiopt.go b/test/phiopt.go
index 4347909752..21dd13155c 100644
--- a/test/phiopt.go
+++ b/test/phiopt.go
@@ -49,7 +49,7 @@ func f3(a, b int) bool {
//go:noinline
func f4(a, b bool) bool {
- return a || b // ERROR "converted OpPhi to Or8$"
+ return a || b // ERROR "converted OpPhi to OrB$"
}
//go:noinline
@@ -60,7 +60,7 @@ func f5or(a int, b bool) bool {
} else {
x = b
}
- return x // ERROR "converted OpPhi to Or8$"
+ return x // ERROR "converted OpPhi to OrB$"
}
//go:noinline
@@ -71,7 +71,7 @@ func f5and(a int, b bool) bool {
} else {
x = false
}
- return x // ERROR "converted OpPhi to And8$"
+ return x // ERROR "converted OpPhi to AndB$"
}
//go:noinline
@@ -96,12 +96,12 @@ func f6and(a int, b bool) bool {
//go:noinline
func f7or(a bool, b bool) bool {
- return a || b // ERROR "converted OpPhi to Or8$"
+ return a || b // ERROR "converted OpPhi to OrB$"
}
//go:noinline
func f7and(a bool, b bool) bool {
- return a && b // ERROR "converted OpPhi to And8$"
+ return a && b // ERROR "converted OpPhi to AndB$"
}
func main() {