From e2593a68838a038dce55719ca3e4e8604dbc43d3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 24 Jul 2023 14:01:10 +0100 Subject: Update Tilde for testing reg spill stuff --- src/tilde_expr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tilde_expr.cpp') diff --git a/src/tilde_expr.cpp b/src/tilde_expr.cpp index 822c637ca..07e60f1a6 100644 --- a/src/tilde_expr.cpp +++ b/src/tilde_expr.cpp @@ -547,7 +547,7 @@ gb_internal cgValue cg_emit_comp(cgProcedure *p, TokenKind op_kind, cgValue left case Token_Gt: res = tb_inst_cmp_igt(p->func, lhs, rhs, is_signed); break; case Token_GtEq: res = tb_inst_cmp_ige(p->func, lhs, rhs, is_signed); break; case Token_Lt: res = tb_inst_cmp_ilt(p->func, lhs, rhs, is_signed); break; - case Token_LtEq: res = tb_inst_cmp_ige(p->func, lhs, rhs, is_signed); break; + case Token_LtEq: res = tb_inst_cmp_ile(p->func, lhs, rhs, is_signed); break; } GB_ASSERT(res != nullptr); @@ -562,7 +562,7 @@ gb_internal cgValue cg_emit_comp(cgProcedure *p, TokenKind op_kind, cgValue left case Token_Gt: res = tb_inst_cmp_fgt(p->func, lhs, rhs); break; case Token_GtEq: res = tb_inst_cmp_fge(p->func, lhs, rhs); break; case Token_Lt: res = tb_inst_cmp_flt(p->func, lhs, rhs); break; - case Token_LtEq: res = tb_inst_cmp_fge(p->func, lhs, rhs); break; + case Token_LtEq: res = tb_inst_cmp_fle(p->func, lhs, rhs); break; } GB_ASSERT(res != nullptr); return cg_value(res, t_bool); -- cgit v1.2.3