mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py: In asmthumb, clean up unit/int types and ite ops.
This commit is contained in:
@@ -1537,7 +1537,7 @@ STATIC void emit_native_binary_op(emit_t *emit, mp_binary_op_t op) {
|
||||
asm_x86_setcc_r8(emit->as, ASM_X86_CC_JL, REG_RET);
|
||||
#elif N_THUMB
|
||||
asm_thumb_cmp_rlo_rlo(emit->as, REG_ARG_2, REG_ARG_3);
|
||||
asm_thumb_ite_ge(emit->as);
|
||||
asm_thumb_op16(emit->as, ASM_THUMB_OP_ITE_GE);
|
||||
asm_thumb_mov_rlo_i8(emit->as, REG_RET, 0); // if r0 >= r1
|
||||
asm_thumb_mov_rlo_i8(emit->as, REG_RET, 1); // if r0 < r1
|
||||
#elif N_ARM
|
||||
|
||||
Reference in New Issue
Block a user