[clang] [X86] Add MMX/SSE/AVX PHADD/SUB & HADDPS/D intrinsics to be used in constexpr (PR #156822)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 28 10:55:28 PDT 2025
================
@@ -1093,24 +1093,34 @@ __m256d test_mm256_hadd_pd(__m256d A, __m256d B) {
// CHECK: call {{.*}}<4 x double> @llvm.x86.avx.hadd.pd.256(<4 x double> %{{.*}}, <4 x double> %{{.*}})
return _mm256_hadd_pd(A, B);
}
+TEST_CONSTEXPR(match_m256d(_mm256_hadd_pd((__m256d){1.0, 2.0, 3.0, 4.0}, (__m256d){5.0, 6.0, 7.0, 8.0}), 3.0, 7.0, 11.0, 15.0));
----------------
whytolearn wrote:
this is my error, i will more cautious, thank you
https://github.com/llvm/llvm-project/pull/156822
More information about the cfe-commits
mailing list