[compiler-rt] [cmake][compiler-rt][darwin] builtin libraries don't build for armv6m in Darwin (PR #195372)
Ian Anderson via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 15:54:13 PDT 2026
================
@@ -156,7 +156,13 @@ DEFINE_COMPILERRT_FUNCTION(__aeabi_cdrcmple)
mov r1, r3
mov r3, ip
+#if defined(USE_THUMB_1)
+ push {lr}
+ bl __aeabi_cdcmple
+ pop {pc}
----------------
ian-twilightcoder wrote:
Claude made these changes too, but they're consistent with the other function calls in Thumb-1 in these files. They look correct with a read of https://developer.arm.com/documentation/ddi0419/c/Application-Level-Architecture/The-ARMv6-M-Instruction-Set/Branch-instructions and https://developer.arm.com/documentation/ddi0419/c/Application-Level-Architecture/Application-Level-Programmers--Model/Registers-and-execution-state/ARM-core-registers
https://github.com/llvm/llvm-project/pull/195372
More information about the llvm-commits
mailing list