diff options
author | Michael Jones <michaelrj@google.com> | 2022-03-30 01:04:03 +0300 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2022-03-30 02:23:36 +0300 |
commit | 2f8829aba3cae7057d9a2b18f7e5ed95a1bd33d1 (patch) | |
tree | 857144bad0a88d027178d1e4f367d6d4172d6483 /libc | |
parent | 4ac3f7e41aaea0ad678a41cc2408bb9eda7ba33c (diff) |
[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
Diffstat (limited to 'libc')
-rw-r--r-- | libc/src/math/CMakeLists.txt | 2 | ||||
-rw-r--r-- | libc/src/math/generic/CMakeLists.txt | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt index b0b27126e638..9737f4a362dc 100644 --- a/libc/src/math/CMakeLists.txt +++ b/libc/src/math/CMakeLists.txt @@ -50,6 +50,7 @@ add_entrypoint_object( libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 + -mfma ) add_entrypoint_object( @@ -62,6 +63,7 @@ add_entrypoint_object( libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 + -mfma ) add_math_entrypoint_object(ceil) diff --git a/libc/src/math/generic/CMakeLists.txt b/libc/src/math/generic/CMakeLists.txt index 2265fa2a17b3..b3f1a34bdea3 100644 --- a/libc/src/math/generic/CMakeLists.txt +++ b/libc/src/math/generic/CMakeLists.txt @@ -481,6 +481,7 @@ add_entrypoint_object( libc.include.math COMPILE_OPTIONS -O3 + -mfma ) add_entrypoint_object( @@ -494,6 +495,7 @@ add_entrypoint_object( libc.include.math COMPILE_OPTIONS -O3 + -mfma ) add_entrypoint_object( @@ -508,6 +510,7 @@ add_entrypoint_object( libc.include.math COMPILE_OPTIONS -O3 + -mfma ) add_entrypoint_object( @@ -673,6 +676,7 @@ add_entrypoint_object( libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O3 + -mfma ) add_entrypoint_object( @@ -686,6 +690,7 @@ add_entrypoint_object( libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O3 + -mfma ) add_entrypoint_object( @@ -712,6 +717,7 @@ add_entrypoint_object( libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O3 + -mfma ) add_entrypoint_object( |