[clang] [X86] Change target of __builtin_ia32_cmp[p|s][s|d] from avx into sse/sse2 (PR #84136)
Freddy Ye via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 6 00:17:59 PST 2024
================
@@ -15,7 +15,7 @@ int baz(__m256i a) {
#if NEED_AVX_2
__m128 need_avx(__m128 a, __m128 b) {
- return _mm_cmp_ps(a, b, 0); // expected-error {{'__builtin_ia32_cmpps' needs target feature avx}}
+ return _mm_cmp_ps(a, b, 8); // expected-error {{'__builtin_ia32_cmpps' needs target feature avx}}
----------------
FreddyLeaf wrote:
@phoebewang @RKSimon @KanRobert
This change shows the behavior of compiling these intrinsics with parameter of [8,31] after this PR.
https://github.com/llvm/llvm-project/pull/84136
More information about the cfe-commits
mailing list