summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-11-06 17:11:07 +0000
committerDamien <damien.p.george@gmail.com>2013-11-06 17:11:07 +0000
commitae0bc08a378e0475c151afc697300eab5917c8e9 (patch)
tree3f0dd44ec70f0446875571542fd6b606e8296445 /py
parent40fdfe3000b1fa7f8ceb7546df93911e14e2db98 (diff)
downloadmicropython-ae0bc08a378e0475c151afc697300eab5917c8e9.tar.gz
micropython-ae0bc08a378e0475c151afc697300eab5917c8e9.zip
Viper supports inplace add (trivial).
Diffstat (limited to 'py')
-rw-r--r--py/emitnative.c2
1 files changed, 1 insertions, 1 deletions
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