[clang] [Headers][X86] Fix incorrect macro definitions for non-constexpr (PR #153060)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut created https://github.com/llvm/llvm-project/pull/153060 While working on PR #152910, I discovered some incorrectly defined `__DEFAULT_FN_ATTRS*_CONSTEXPR` macros for non-constexpr contexts. >From 4924552f7b1c585a613943ab65050e73e6525bb4 Mon Sep 17 00:00:00 2001

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut ready_for_review https://github.com/llvm/llvm-project/pull/152910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
@@ -13,12 +14,14 @@ __m128h test_mm_setzero_ph(void) { // CHECK: zeroinitializer return _mm_setzero_ph(); } +TEST_CONSTEXPR(match_m128(_mm_setzero_ph(), +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f)); markbhasawut wrote: Done. https://github.co

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From e54e04113c97f9ebd877f45d39a5b1347d08d468 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/7] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From e54e04113c97f9ebd877f45d39a5b1347d08d468 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/7] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut converted_to_draft https://github.com/llvm/llvm-project/pull/152910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From e54e04113c97f9ebd877f45d39a5b1347d08d468 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/5] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
@@ -13,12 +14,14 @@ __m128h test_mm_setzero_ph(void) { // CHECK: zeroinitializer return _mm_setzero_ph(); } +TEST_CONSTEXPR(match_m128(_mm_setzero_ph(), +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f, +0.0f)); markbhasawut wrote: Ok, thanks for your advi

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/5] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/5] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/5] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-11 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/5] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/4] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut ready_for_review https://github.com/llvm/llvm-project/pull/152910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/4] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/4] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/3] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/2] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut created https://github.com/llvm/llvm-project/pull/152910 This PR adds constexpr support for the following AVX512F/BW/FP16 set intrinsics: - _mm512_set4_pd - _mm512_set4_ps - _mm512_set4_epi32 - _mm512_set4_epi64 - _mm512_set_pd - _mm512_set_ps - _m