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