2020-01-23 10:13:16 +08:00
|
|
|
// RUN: %clang_cc1 -flax-vector-conversions=none -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx512pf -emit-llvm -o - -Wall -Werror | FileCheck %s
|
2016-04-21 20:47:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
#include <immintrin.h>
|
|
|
|
|
|
|
|
void test_mm512_mask_prefetch_i32gather_pd(__m256i index, __mmask8 mask, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i32gather_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.dpd
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i32gather_pd(index, mask, addr, 2, _MM_HINT_T0);
|
2016-04-21 20:47:27 +08:00
|
|
|
}
|
|
|
|
|
2016-06-14 21:45:17 +08:00
|
|
|
void test_mm512_prefetch_i32gather_pd(__m256i index, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i32gather_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.dpd
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i32gather_pd(index, addr, 2, _MM_HINT_T0);
|
2016-06-14 21:45:17 +08:00
|
|
|
}
|
|
|
|
|
2016-04-21 20:47:27 +08:00
|
|
|
void test_mm512_mask_prefetch_i32gather_ps(__m512i index, __mmask16 mask, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i32gather_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.dps
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i32gather_ps(index, mask, addr, 2, _MM_HINT_T0);
|
2016-04-21 20:47:27 +08:00
|
|
|
}
|
|
|
|
|
2016-06-14 21:45:17 +08:00
|
|
|
void test_mm512_prefetch_i32gather_ps(__m512i index, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i32gather_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.dps
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i32gather_ps(index, addr, 2, _MM_HINT_T0);
|
2016-06-14 21:45:17 +08:00
|
|
|
}
|
|
|
|
|
2016-04-21 20:47:27 +08:00
|
|
|
void test_mm512_mask_prefetch_i64gather_pd(__m512i index, __mmask8 mask, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i64gather_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.qpd
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i64gather_pd(index, mask, addr, 2, _MM_HINT_T0);
|
2016-04-21 20:47:27 +08:00
|
|
|
}
|
|
|
|
|
2016-06-14 21:45:17 +08:00
|
|
|
void test_mm512_prefetch_i64gather_pd(__m512i index, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i64gather_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.qpd
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i64gather_pd(index, addr, 2, _MM_HINT_T0);
|
2016-06-14 21:45:17 +08:00
|
|
|
}
|
|
|
|
|
2016-04-21 20:47:27 +08:00
|
|
|
void test_mm512_mask_prefetch_i64gather_ps(__m512i index, __mmask8 mask, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i64gather_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.qps
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i64gather_ps(index, mask, addr, 2, _MM_HINT_T0);
|
2016-04-21 20:47:27 +08:00
|
|
|
}
|
2016-04-25 21:01:40 +08:00
|
|
|
|
2016-06-14 21:45:17 +08:00
|
|
|
void test_mm512_prefetch_i64gather_ps(__m512i index, void const *addr, int hint) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i64gather_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.gatherpf.qps
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i64gather_ps(index, addr, 2, _MM_HINT_T0);
|
2016-06-14 21:45:17 +08:00
|
|
|
}
|
|
|
|
|
2016-04-25 21:01:40 +08:00
|
|
|
void test_mm512_prefetch_i32scatter_pd(void *addr, __m256i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i32scatter_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.dpd.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i32scatter_pd(addr, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_mask_prefetch_i32scatter_pd(void *addr, __mmask8 mask, __m256i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i32scatter_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.dpd.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i32scatter_pd(addr, mask, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_prefetch_i32scatter_ps(void *addr, __m512i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i32scatter_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.dps.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i32scatter_ps(addr, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_mask_prefetch_i32scatter_ps(void *addr, __mmask16 mask, __m512i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i32scatter_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.dps.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i32scatter_ps(addr, mask, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_prefetch_i64scatter_pd(void *addr, __m512i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i64scatter_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.qpd.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i64scatter_pd(addr, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_mask_prefetch_i64scatter_pd(void *addr, __mmask16 mask, __m512i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i64scatter_pd
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.qpd.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i64scatter_pd(addr, mask, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_prefetch_i64scatter_ps(void *addr, __m512i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_prefetch_i64scatter_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.qps.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_prefetch_i64scatter_ps(addr, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void test_mm512_mask_prefetch_i64scatter_ps(void *addr, __mmask16 mask, __m512i index) {
|
|
|
|
// CHECK-LABEL: @test_mm512_mask_prefetch_i64scatter_ps
|
|
|
|
// CHECK: @llvm.x86.avx512.scatterpf.qps.512
|
2017-04-01 01:22:30 +08:00
|
|
|
return _mm512_mask_prefetch_i64scatter_ps(addr, mask, index, 1, _MM_HINT_T1);
|
2016-04-25 21:01:40 +08:00
|
|
|
}
|