diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-24 22:43:01 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-24 22:43:01 +0000 |
commit | 993f067fa2411a6d529e66b78dcc939b5141a6ce (patch) | |
tree | 7da739b77a9d0434b2231eca4877601311952460 | |
parent | e5315f7ffd7325ffc064393ffb82f378d9655934 (diff) | |
download | micropython-993f067fa2411a6d529e66b78dcc939b5141a6ce.tar.gz micropython-993f067fa2411a6d529e66b78dcc939b5141a6ce.zip |
py: In inline assembler, add return statement to fix flow logic.
-rw-r--r-- | py/emitinlinethumb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/emitinlinethumb.c b/py/emitinlinethumb.c index 05ab8a5d49..530bd95254 100644 --- a/py/emitinlinethumb.c +++ b/py/emitinlinethumb.c @@ -474,6 +474,7 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, mp_uint_t n_a reg_dest = get_arg_reg(emit, op_str, pn_args[0], 7); reg_src = get_arg_reg(emit, op_str, pn_args[1], 7); asm_thumb_format_4(emit->as, op_code, reg_dest, reg_src); + return; } // search table for ALU ops for (mp_uint_t i = 0; i < MP_ARRAY_SIZE(format_4_op_table); i++) { |