diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-12 17:54:52 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-12 17:54:52 +0100 |
commit | a26dc509681ef766ddc3d72646abd3befc12f573 (patch) | |
tree | ce1b1d5d0f25706e405f617ab979904d0a4d6a84 /py/emitnative.c | |
parent | 2813cb6043fa9884b87b7ce23a85e97a9ed304e7 (diff) | |
download | micropython-a26dc509681ef766ddc3d72646abd3befc12f573.tar.gz micropython-a26dc509681ef766ddc3d72646abd3befc12f573.zip |
py: Improve inline assembler; improve compiler constant folding.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index d2a3df25dd..29da5b8c99 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -1058,7 +1058,7 @@ STATIC void emit_native_binary_op(emit_t *emit, mp_binary_op_t op) { #if N_X64 asm_x64_add_r64_to_r64(emit->as, REG_ARG_3, REG_ARG_2); #elif N_THUMB - asm_thumb_add_reg_reg_reg(emit->as, REG_ARG_2, REG_ARG_2, REG_ARG_3); + asm_thumb_add_rlo_rlo_rlo(emit->as, REG_ARG_2, REG_ARG_2, REG_ARG_3); #endif emit_post_push_reg(emit, VTYPE_INT, REG_ARG_2); } else if (op == MP_BINARY_OP_LESS) { |