Fix example code and test

This commit is contained in:
Dmitry Stogov 2023-03-23 00:54:47 +03:00
parent 24e8e216a1
commit 6d36fb12c3
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
}