aboutsummaryrefslogtreecommitdiff
path: root/test/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'test/codegen')
-rw-r--r--test/codegen/compare_and_branch.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/codegen/compare_and_branch.go b/test/codegen/compare_and_branch.go
index c121f1d2cc..759dd26358 100644
--- a/test/codegen/compare_and_branch.go
+++ b/test/codegen/compare_and_branch.go
@@ -241,4 +241,14 @@ func ui64x0(x chan uint64) {
for <-x < 1 {
dummy()
}
+
+ // riscv64:"BNEZ"
+ for 0 < <-x {
+ dummy()
+ }
+
+ // riscv64:"BEQZ"
+ for 0 >= <-x {
+ dummy()
+ }
}