For setcond2_i32 DST, A_low, A_high, B_low, B_high, TCG_COND_EQ, DST should be 0 as long as either half of A and B are not equal.
Signed-off-by: Liren Wei <lr...@bupt.edu.cn> --- tcg/optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index c239c3bd07..45a10e5e72 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1492,7 +1492,7 @@ void tcg_optimize(TCGContext *s) op->args[2], op->args[4], TCG_COND_EQ); if (tmp == 0) { - goto do_setcond_high; + goto do_setcond_const; } else if (tmp != 1) { goto do_default; } -- 2.33.0