[compiler-rt] r341540 - ARM: wrap call to __clzsi2 so that the name is correct on MachO.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 6 05:13:46 PDT 2018


Author: tnorthover
Date: Thu Sep  6 05:13:46 2018
New Revision: 341540

URL: http://llvm.org/viewvc/llvm-project?rev=341540&view=rev
Log:
ARM: wrap call to __clzsi2 so that the name is correct on MachO.

MachO symbols are prefixed with an extra '_' (that's 3 in total for this
function), so assembly calls have to go through a wrapper to insert any prefix
needed.

Modified:
    compiler-rt/trunk/lib/builtins/arm/addsf3.S

Modified: compiler-rt/trunk/lib/builtins/arm/addsf3.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/arm/addsf3.S?rev=341540&r1=341539&r2=341540&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/arm/addsf3.S (original)
+++ compiler-rt/trunk/lib/builtins/arm/addsf3.S Thu Sep  6 05:13:46 2018
@@ -178,7 +178,7 @@ LOCAL_LABEL(do_substraction):
 
   push {r0, r1, r2, r3}
   movs r0, r4
-  bl   __clzsi2
+  bl   SYMBOL_NAME(__clzsi2)
   movs r5, r0
   pop {r0, r1, r2, r3}
   // shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3);




More information about the llvm-commits mailing list