authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-01-15 20:03:41+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-01-15 20:03:41+01:00
loge8012740b90f9acf286d852755d358eb4c708ab5
tree8ea88ec128687e98f48beead6d49482f9a0c0a42
parentede28755b602d1ebaf7f6b37ca10d49e6cc7f0f7

Fix off-by-one error (and missing store op)


1 files changed, 6 insertions(+), 4 deletions(-)

lib/std/special/compiler_rt/arm.zig+6-4
......@@ -78,9 +78,10 @@ pub fn __aeabi_uldivmod() callconv(.Naked) void {
7878 \\ push {r4, lr}
7979 \\ sub sp, #16
8080 \\ add r4, sp, #8
81 \\ str r4, [sp]
8182 \\ bl __udivmoddi4
82 \\ ldr r3, [sp, #8]
83 \\ ldr r4, [sp, #12]
83 \\ ldr r2, [sp, #8]
84 \\ ldr r3, [sp, #12]
8485 \\ add sp, #16
8586 \\ pop {r4, pc}
8687 :
......@@ -113,9 +114,10 @@ pub fn __aeabi_ldivmod() callconv(.Naked) void {
113114 \\ push {r4, lr}
114115 \\ sub sp, #16
115116 \\ add r4, sp, #8
117 \\ str r4, [sp]
116118 \\ bl __divmoddi4
117 \\ ldr r3, [sp, #8]
118 \\ ldr r4, [sp, #12]
119 \\ ldr r2, [sp, #8]
120 \\ ldr r3, [sp, #12]
119121 \\ add sp, #16
120122 \\ pop {r4, pc}
121123 :