From ae0bc08a378e0475c151afc697300eab5917c8e9 Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 6 Nov 2013 17:11:07 +0000 Subject: [PATCH] Viper supports inplace add (trivial). --- py/emitnative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/emitnative.c b/py/emitnative.c index a23c97b6ad..707673f32d 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -999,7 +999,7 @@ static void emit_native_binary_op(emit_t *emit, rt_binary_op_t op) { vtype_kind_t vtype_lhs, vtype_rhs; emit_pre_pop_reg_reg(emit, &vtype_rhs, REG_ARG_3, &vtype_lhs, REG_ARG_2); if (vtype_lhs == VTYPE_INT && vtype_rhs == VTYPE_INT) { - assert(op == RT_BINARY_OP_ADD); + assert(op == RT_BINARY_OP_ADD || op == RT_BINARY_OP_INPLACE_ADD); #if N_X64 asm_x64_add_r64_to_r64(emit->as, REG_ARG_3, REG_ARG_2); #elif N_THUMB