[libc-commits] [libc] [libc] Fix SSE2 check for x86_64/sqrt.h. (PR #200468)
via libc-commits
libc-commits at lists.llvm.org
Fri May 29 11:01:51 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: lntue
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/200468.diff
1 Files Affected:
- (modified) libc/src/__support/FPUtil/x86_64/sqrt.h (+1-1)
``````````diff
diff --git a/libc/src/__support/FPUtil/x86_64/sqrt.h b/libc/src/__support/FPUtil/x86_64/sqrt.h
index e10447751d216..68ce627a57025 100644
--- a/libc/src/__support/FPUtil/x86_64/sqrt.h
+++ b/libc/src/__support/FPUtil/x86_64/sqrt.h
@@ -14,7 +14,7 @@
#include "src/__support/macros/properties/architectures.h"
#include "src/__support/macros/properties/cpu_features.h"
-#if !(defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2))
+#if !defined(LIBC_TARGET_CPU_HAS_SSE2)
#error "sqrtss / sqrtsd need SSE2"
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/200468
More information about the libc-commits
mailing list