[compiler-rt] [compiler-rt][ARM] Enable strict mode in divsf3/mulsf3 tests (PR #179918)
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 6 06:36:54 PST 2026
================
@@ -16,31 +16,33 @@
// 0x7fc00000. For the Arm optimized FP implementation, which commits to a more
// detailed handling of NaNs, we tighten up the check and include some extra
// test cases specific to that NaN policy.
-#if (__arm__ && !(__thumb__ && !__thumb2__)) && COMPILER_RT_ARM_OPTIMIZED_FP
+#if (__arm__ || __thumb__) && COMPILER_RT_ARM_OPTIMIZED_FP
----------------
statham-arm wrote:
At the moment, the `COMPILER_RT_ARM_OPTIMIZED_FP` define is set on the command line based on the cmake option, and the cmake option isn't conditional on the target architecture.
I was nervous of changing that, because I don't fully understand the compiler-rt build system, in particular the `${BUILTIN_SUPPORTED_ARCH}` mechanism which seems to allow `lib/builtins/CMakeLists.txt` to target multiple architectures in a single run of cmake. If I test the target architecture before deciding whether to add `-DCOMPILER_RT_ARM_OPTIMIZED_FP` to the test command line, will that test apply to all of `${BUILTIN_SUPPORTED_ARCH}` at once? I don't have any build setups that test this.
https://github.com/llvm/llvm-project/pull/179918
More information about the llvm-commits
mailing list