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 {...@@ -78,9 +78,10 @@ pub fn __aeabi_uldivmod() callconv(.Naked) void {
78 \\ push {r4, lr}78 \\ push {r4, lr}
79 \\ sub sp, #1679 \\ sub sp, #16
80 \\ add r4, sp, #880 \\ add r4, sp, #8
81 \\ str r4, [sp]
81 \\ bl __udivmoddi482 \\ bl __udivmoddi4
82 \\ ldr r3, [sp, #8]83 \\ ldr r2, [sp, #8]
83 \\ ldr r4, [sp, #12]84 \\ ldr r3, [sp, #12]
84 \\ add sp, #1685 \\ add sp, #16
85 \\ pop {r4, pc}86 \\ pop {r4, pc}
86 :87 :
...@@ -113,9 +114,10 @@ pub fn __aeabi_ldivmod() callconv(.Naked) void {...@@ -113,9 +114,10 @@ pub fn __aeabi_ldivmod() callconv(.Naked) void {
113 \\ push {r4, lr}114 \\ push {r4, lr}
114 \\ sub sp, #16115 \\ sub sp, #16
115 \\ add r4, sp, #8116 \\ add r4, sp, #8
117 \\ str r4, [sp]
116 \\ bl __divmoddi4118 \\ bl __divmoddi4
117 \\ ldr r3, [sp, #8]119 \\ ldr r2, [sp, #8]
118 \\ ldr r4, [sp, #12]120 \\ ldr r3, [sp, #12]
119 \\ add sp, #16121 \\ add sp, #16
120 \\ pop {r4, pc}122 \\ pop {r4, pc}
121 :123 :