[clang] [X86] _mm_addsub_pd is not valid for constexpr (PR #167363)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 10 10:31:46 PST 2025


https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/167363

Typo in #156822

Part of #166814

>From 8b638c64e6fdb84147f35614e55b9588bafa80b8 Mon Sep 17 00:00:00 2001
From: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: Mon, 10 Nov 2025 18:28:58 +0000
Subject: [PATCH] [X86] _mm_addsub_pd is not valid for constexpr

Typo in #156822

Part of #166814
---
 clang/lib/Headers/pmmintrin.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/lib/Headers/pmmintrin.h b/clang/lib/Headers/pmmintrin.h
index 42bd343e326de..6b152bde29fc1 100644
--- a/clang/lib/Headers/pmmintrin.h
+++ b/clang/lib/Headers/pmmintrin.h
@@ -166,7 +166,7 @@ _mm_moveldup_ps(__m128 __a)
 ///    A 128-bit vector of [2 x double] containing the right source operand.
 /// \returns A 128-bit vector of [2 x double] containing the alternating sums
 ///    and differences of both operands.
-static __inline__ __m128d __DEFAULT_FN_ATTRS_CONSTEXPR
+static __inline__ __m128d __DEFAULT_FN_ATTRS
 _mm_addsub_pd(__m128d __a, __m128d __b) {
   return __builtin_ia32_addsubpd((__v2df)__a, (__v2df)__b);
 }



More information about the cfe-commits mailing list