diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-03 14:25:43 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-03 14:25:43 +0000 |
commit | 9b9e996df616e8ba3b175b87783d3a34bc357c6d (patch) | |
tree | 7b3c74ee4fa0e6016e9bb3fdefc63287dc708e31 /py/emitnative.c | |
parent | 1a6633a74d686cdbc4609875713019b8530e3da7 (diff) |
Support for for-loop in native thumb.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index cdc97fec0..a23c97b6a 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -965,10 +965,8 @@ static void emit_native_for_iter(emit_t *emit, int label) { asm_x64_cmp_r64_with_r64(emit->as, REG_RET, REG_TEMP1); asm_x64_jcc_label(emit->as, JCC_JE, label); #elif N_THUMB - assert(0); // XXX TODO asm_thumb_cmp_reg_reg(emit->as, REG_RET, REG_TEMP1); - // use it, b? - asm_thumb_b_label(emit->as, label); + asm_thumb_bcc_label(emit->as, THUMB_CC_EQ, label); #endif emit_post_push_reg(emit, VTYPE_PYOBJ, REG_RET); } |