Unify results of SELECTCC (#1197)

This commit is contained in:
liang.he 2022-05-30 19:44:08 +08:00 committed by GitHub
parent 9e3c6acb25
commit 8350d9860b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -685,8 +685,8 @@ compile_int_div(JitCompContext *cc, IntArithmetic arith_op, bool is_i32,
}
}
else {
JitReg cmp1 = is_i32 ? jit_cc_new_reg_I32(cc) : jit_cc_new_reg_I64(cc);
JitReg cmp2 = is_i32 ? jit_cc_new_reg_I32(cc) : jit_cc_new_reg_I64(cc);
JitReg cmp1 = jit_cc_new_reg_I32(cc);
JitReg cmp2 = jit_cc_new_reg_I32(cc);
GEN_INSN(CMP, cc->cmp_reg, right,
is_i32 ? NEW_CONST(I32, 0) : NEW_CONST(I64, 0));