commit e6879e99e26fd11f659be3deec2b5de409b46547 (tree)
parent fed8df92171660fe5ff92bcb403833354e2f07c6
Author: GalaxyShard <dominic.adragna@byteroach.com>
Date: Mon, 30 Dec 2024 14:58:21 -0500
compiler_rt: fix incorrect __clzsi2_thumb1 lookup table usage
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/compiler_rt/count0bits.zig b/lib/compiler_rt/count0bits.zig
@@ -73,7 +73,7 @@ fn __clzsi2_thumb1() callconv(.Naked) void {
\\ subs r1, #4
\\ movs r0, r2
\\ 1:
- \\ ldr r3, .lut
+ \\ adr r3, .lut
\\ ldrb r0, [r3, r0]
\\ subs r0, r1, r0
\\ bx lr