aboutsummaryrefslogtreecommitdiff
path: root/test/conditional-compound-literal.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/conditional-compound-literal.qbe')
-rw-r--r--test/conditional-compound-literal.qbe19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/conditional-compound-literal.qbe b/test/conditional-compound-literal.qbe
index 57358e6..739eea4 100644
--- a/test/conditional-compound-literal.qbe
+++ b/test/conditional-compound-literal.qbe
@@ -3,20 +3,19 @@ function w $main() {
@start.1
%.1 =l alloc4 4
%.2 =l alloc8 8
- %.4 =l alloc4 4
+ %.3 =l alloc4 4
@body.2
storew 0, %.1
- %.3 =w cnew 0, 0
- jnz %.3, @cond_true.3, @cond_false.4
+ jnz 0, @cond_true.3, @cond_false.4
@cond_true.3
jmp @cond_join.5
@cond_false.4
- %.5 =w loadw %.1
- storew %.5, %.4
+ %.4 =w loadw %.1
+ storew %.4, %.3
@cond_join.5
- %.6 =l phi @cond_true.3 0, @cond_false.4 %.4
- storel %.6, %.2
- %.7 =l loadl %.2
- %.8 =w loadw %.7
- ret %.8
+ %.5 =l phi @cond_true.3 0, @cond_false.4 %.3
+ storel %.5, %.2
+ %.6 =l loadl %.2
+ %.7 =w loadw %.6
+ ret %.7
}