[libc] Add mfma option to functions that use fma

On Windows the functions that use fma don't properly include the fma
intrinsics unless -mfma is added to the compile options. This patch adds
the compile option to all of the functions that need it.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D122689
This commit is contained in:
Michael Jones 2022-03-29 15:04:03 -07:00
parent 4ac3f7e41a
commit 2f8829aba3
2 changed files with 8 additions and 0 deletions

View file

@ -50,6 +50,7 @@ add_entrypoint_object(
libc.src.__support.FPUtil.fputil libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS COMPILE_OPTIONS
-O2 -O2
-mfma
) )
add_entrypoint_object( add_entrypoint_object(
@ -62,6 +63,7 @@ add_entrypoint_object(
libc.src.__support.FPUtil.fputil libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS COMPILE_OPTIONS
-O2 -O2
-mfma
) )
add_math_entrypoint_object(ceil) add_math_entrypoint_object(ceil)

View file

@ -481,6 +481,7 @@ add_entrypoint_object(
libc.include.math libc.include.math
COMPILE_OPTIONS COMPILE_OPTIONS
-O3 -O3
-mfma
) )
add_entrypoint_object( add_entrypoint_object(
@ -494,6 +495,7 @@ add_entrypoint_object(
libc.include.math libc.include.math
COMPILE_OPTIONS COMPILE_OPTIONS
-O3 -O3
-mfma
) )
add_entrypoint_object( add_entrypoint_object(
@ -508,6 +510,7 @@ add_entrypoint_object(
libc.include.math libc.include.math
COMPILE_OPTIONS COMPILE_OPTIONS
-O3 -O3
-mfma
) )
add_entrypoint_object( add_entrypoint_object(
@ -673,6 +676,7 @@ add_entrypoint_object(
libc.src.__support.FPUtil.fputil libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS COMPILE_OPTIONS
-O3 -O3
-mfma
) )
add_entrypoint_object( add_entrypoint_object(
@ -686,6 +690,7 @@ add_entrypoint_object(
libc.src.__support.FPUtil.fputil libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS COMPILE_OPTIONS
-O3 -O3
-mfma
) )
add_entrypoint_object( add_entrypoint_object(
@ -712,6 +717,7 @@ add_entrypoint_object(
libc.src.__support.FPUtil.fputil libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS COMPILE_OPTIONS
-O3 -O3
-mfma
) )
add_entrypoint_object( add_entrypoint_object(