Skip to content

[libc] Fix SSE2 check for x86_64/sqrt.h.#200468

Merged
lntue merged 1 commit into
llvm:mainfrom
lntue:sse2
May 29, 2026
Merged

[libc] Fix SSE2 check for x86_64/sqrt.h.#200468
lntue merged 1 commit into
llvm:mainfrom
lntue:sse2

Conversation

@lntue
Copy link
Copy Markdown
Contributor

@lntue lntue commented May 29, 2026

No description provided.

@lntue lntue requested a review from a team as a code owner May 29, 2026 18:01
@lntue lntue requested a review from vonosmas May 29, 2026 18:01
@llvmorg-github-actions
Copy link
Copy Markdown

@llvm/pr-subscribers-libc

Author: lntue

Changes

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 --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
 

@lntue lntue merged commit 6a96948 into llvm:main May 29, 2026
40 checks passed
@lntue lntue deleted the sse2 branch May 29, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants