aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/bool.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen/bool.go')
-rw-r--r--test/codegen/bool.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/codegen/bool.go b/test/codegen/bool.go
index 37f85a45b7..8fe7a94687 100644
--- a/test/codegen/bool.go
+++ b/test/codegen/bool.go
@@ -313,3 +313,18 @@ func constantWrite(b bool, p *bool) {
*p = b
}
}
+
+func boolCompare1(p, q *bool) int {
+ // arm64:-"EOR [$]1"
+ if *p == *q {
+ return 5
+ }
+ return 7
+}
+func boolCompare2(p, q *bool) int {
+ // arm64:-"EOR [$]1"
+ if *p != *q {
+ return 5
+ }
+ return 7
+}