[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / avx512vp2intersect-builtins.c
blob2a3d38acfbf2c3397054befe65b1faca7deff888
1 // RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64-unknown-unknown -target-feature +avx512vp2intersect -emit-llvm -o - -Wall -Werror | FileCheck %s
2 // RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=i386-unknown-unknown -target-feature +avx512vp2intersect -emit-llvm -o - -Wall -Werror | FileCheck %s
4 #include <immintrin.h>
6 void test_mm512_2intersect_epi32(__m512i a, __m512i b, __mmask16 *m0, __mmask16 *m1) {
7 // CHECK-LABEL: test_mm512_2intersect_epi32
8 // CHECK: call { <16 x i1>, <16 x i1> } @llvm.x86.avx512.vp2intersect.d.512(<16 x i32> %{{.*}}, <16 x i32> %{{.*}})
9 // CHECK: extractvalue { <16 x i1>, <16 x i1> } %{{.*}}, 0
10 // CHECK: extractvalue { <16 x i1>, <16 x i1> } %{{.*}}, 1
11 _mm512_2intersect_epi32(a, b, m0, m1);
14 void test_mm512_2intersect_epi64(__m512i a, __m512i b, __mmask8 *m0, __mmask8 *m1) {
15 // CHECK-LABEL: test_mm512_2intersect_epi64
16 // CHECK: call { <8 x i1>, <8 x i1> } @llvm.x86.avx512.vp2intersect.q.512(<8 x i64> %{{.*}}, <8 x i64> %{{.*}})
17 // CHECK: extractvalue { <8 x i1>, <8 x i1> } %{{.*}}, 0
18 // CHECK: extractvalue { <8 x i1>, <8 x i1> } %{{.*}}, 1
19 _mm512_2intersect_epi64(a, b, m0, m1);