Skip to content

Commit e6879e9

Browse files
GalaxyShardalexrp
authored andcommitted
compiler_rt: fix incorrect __clzsi2_thumb1 lookup table usage
1 parent fed8df9 commit e6879e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler_rt/count0bits.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn __clzsi2_thumb1() callconv(.Naked) void {
7373
\\ subs r1, #4
7474
\\ movs r0, r2
7575
\\ 1:
76-
\\ ldr r3, .lut
76+
\\ adr r3, .lut
7777
\\ ldrb r0, [r3, r0]
7878
\\ subs r0, r1, r0
7979
\\ bx lr

0 commit comments

Comments
 (0)