summaryrefslogtreecommitdiff
path: root/lib/builtins/arm/aeabi_idivmod.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/builtins/arm/aeabi_idivmod.S')
-rw-r--r--lib/builtins/arm/aeabi_idivmod.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/builtins/arm/aeabi_idivmod.S b/lib/builtins/arm/aeabi_idivmod.S
index b43ea6990..0164b15dc 100644
--- a/lib/builtins/arm/aeabi_idivmod.S
+++ b/lib/builtins/arm/aeabi_idivmod.S
@@ -26,7 +26,7 @@ DEFINE_COMPILERRT_FUNCTION(__aeabi_idivmod)
push {r0, r1, lr}
bl SYMBOL_NAME(__divsi3)
pop {r1, r2, r3} // now r0 = quot, r1 = num, r2 = denom
- muls r2, r2, r0 // r2 = quot * denom
+ muls r2, r0, r2 // r2 = quot * denom
subs r1, r1, r2
JMP (r3)
#else