| 1 |
// RUN: %clang_cc1 -x c %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 -x c %s -flax-vector-conversions=none -ffreestanding -triple=i386-unknown-unknown -target-feature +avx512vp2intersect -emit-llvm -o - -Wall -Werror | FileCheck %s |
| 3 |
// RUN: %clang_cc1 -x c++ %s -flax-vector-conversions=none -ffreestanding -triple=x86_64-unknown-unknown -target-feature +avx512vp2intersect -emit-llvm -o - -Wall -Werror | FileCheck %s |
| 4 |
// RUN: %clang_cc1 -x c++ %s -flax-vector-conversions=none -ffreestanding -triple=i386-unknown-unknown -target-feature +avx512vp2intersect -emit-llvm -o - -Wall -Werror | FileCheck %s |
| 5 |
|
| 6 |
#include <immintrin.h> |
| 7 |
|
| 8 |
void test_mm512_2intersect_epi32(__m512i a, __m512i b, __mmask16 *m0, __mmask16 *m1) { |
| 9 |
// CHECK-LABEL: test_mm512_2intersect_epi32 |
| 10 |
// CHECK: call { <16 x i1>, <16 x i1> } @llvm.x86.avx512.vp2intersect.d.512(<16 x i32> %{{.*}}, <16 x i32> %{{.*}}) |
| 11 |
// CHECK: extractvalue { <16 x i1>, <16 x i1> } %{{.*}}, 0 |
| 12 |
// CHECK: extractvalue { <16 x i1>, <16 x i1> } %{{.*}}, 1 |
| 13 |
_mm512_2intersect_epi32(a, b, m0, m1); |
| 14 |
} |
| 15 |
|
| 16 |
void test_mm512_2intersect_epi64(__m512i a, __m512i b, __mmask8 *m0, __mmask8 *m1) { |
| 17 |
// CHECK-LABEL: test_mm512_2intersect_epi64 |
| 18 |
// CHECK: call { <8 x i1>, <8 x i1> } @llvm.x86.avx512.vp2intersect.q.512(<8 x i64> %{{.*}}, <8 x i64> %{{.*}}) |
| 19 |
// CHECK: extractvalue { <8 x i1>, <8 x i1> } %{{.*}}, 0 |
| 20 |
// CHECK: extractvalue { <8 x i1>, <8 x i1> } %{{.*}}, 1 |
| 21 |
_mm512_2intersect_epi64(a, b, m0, m1); |
| 22 |
} |