[compiler-rt] [compiler-rt][ARM] Optimized mulsf3 and divsf3 (PR #161546)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 27 10:46:57 PDT 2025


================
@@ -422,6 +422,24 @@ set(arm_or_thumb2_base_SOURCES
   ${GENERIC_SOURCES}
 )
 
+option(COMPILER_RT_ARM_OPTIMIZED_FP
+  "On 32-bit Arm, use optimized assembly implementations of FP arithmetic. Likely to increase code size, but be faster." ON)
+
+if(COMPILER_RT_ARM_OPTIMIZED_FP)
+  set(assembly_files
+    arm/mulsf3.S
+    arm/divsf3.S)
+  set_source_files_properties(${assembly_files}
+    PROPERTIES COMPILE_OPTIONS "-Wa,-mimplicit-it=always")
----------------
compnerd wrote:

You can use GNU as by passing CMAKE_ASM_COMPILER. I think that check_compiler_flag is the right tool.

https://github.com/llvm/llvm-project/pull/161546


More information about the llvm-commits mailing list