mirror of
https://github.com/danog/ir.git
synced 2025-01-21 13:11:16 +01:00
Fix example code and test
This commit is contained in:
parent
24e8e216a1
commit
6d36fb12c3
@ -171,7 +171,7 @@ void gen_mandelbrot(ir_ctx *ctx)
|
||||
ir_IF_TRUE(if_2);
|
||||
ir_RETURN(ir_CONST_I32(0));
|
||||
ir_IF_FALSE(if_2);
|
||||
ir_ref loop_end = ir_LOOP_END(loop);
|
||||
ir_ref loop_end = ir_LOOP_END();
|
||||
|
||||
/* close loop */
|
||||
ir_MERGE_SET_OP(loop, 2, loop_end);
|
||||
|
@ -49,7 +49,7 @@ aarch64
|
||||
int32_t d_9 = ADD(d_5, d_4);
|
||||
int32_t d_10 = SUB(d_9, d_4);
|
||||
l_11 = CALL/2(l_8, c_7, c_8, d_10);
|
||||
l_13 = LOOP_END(l_11, l_3);
|
||||
l_13 = LOOP_END(l_11);
|
||||
l_14 = IF_FALSE(l_7);
|
||||
l_15 = RETURN(l_14, c_4);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user