1 1.1 joerg /*===------------- avx512pfintrin.h - PF intrinsics ------------------------=== 2 1.1 joerg * 3 1.1 joerg * 4 1.1 joerg * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5 1.1 joerg * See https://llvm.org/LICENSE.txt for license information. 6 1.1 joerg * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 1.1 joerg * 8 1.1 joerg *===-----------------------------------------------------------------------=== 9 1.1 joerg */ 10 1.1 joerg #ifndef __IMMINTRIN_H 11 1.1 joerg #error "Never use <avx512pfintrin.h> directly; include <immintrin.h> instead." 12 1.1 joerg #endif 13 1.1 joerg 14 1.1 joerg #ifndef __AVX512PFINTRIN_H 15 1.1 joerg #define __AVX512PFINTRIN_H 16 1.1 joerg 17 1.1 joerg /* Define the default attributes for the functions in this file. */ 18 1.1 joerg #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512pf"))) 19 1.1 joerg 20 1.1 joerg #define _mm512_mask_prefetch_i32gather_pd(index, mask, addr, scale, hint) \ 21 1.1 joerg __builtin_ia32_gatherpfdpd((__mmask8)(mask), (__v8si)(__m256i)(index), \ 22 1.1 joerg (void const *)(addr), (int)(scale), \ 23 1.1 joerg (int)(hint)) 24 1.1 joerg 25 1.1 joerg #define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) \ 26 1.1 joerg __builtin_ia32_gatherpfdpd((__mmask8) -1, (__v8si)(__m256i)(index), \ 27 1.1 joerg (void const *)(addr), (int)(scale), \ 28 1.1 joerg (int)(hint)) 29 1.1 joerg 30 1.1 joerg #define _mm512_mask_prefetch_i32gather_ps(index, mask, addr, scale, hint) \ 31 1.1 joerg __builtin_ia32_gatherpfdps((__mmask16)(mask), \ 32 1.1 joerg (__v16si)(__m512i)(index), (void const *)(addr), \ 33 1.1 joerg (int)(scale), (int)(hint)) 34 1.1 joerg 35 1.1 joerg #define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) \ 36 1.1 joerg __builtin_ia32_gatherpfdps((__mmask16) -1, \ 37 1.1 joerg (__v16si)(__m512i)(index), (void const *)(addr), \ 38 1.1 joerg (int)(scale), (int)(hint)) 39 1.1 joerg 40 1.1 joerg #define _mm512_mask_prefetch_i64gather_pd(index, mask, addr, scale, hint) \ 41 1.1 joerg __builtin_ia32_gatherpfqpd((__mmask8)(mask), (__v8di)(__m512i)(index), \ 42 1.1 joerg (void const *)(addr), (int)(scale), \ 43 1.1 joerg (int)(hint)) 44 1.1 joerg 45 1.1 joerg #define _mm512_prefetch_i64gather_pd(index, addr, scale, hint) \ 46 1.1 joerg __builtin_ia32_gatherpfqpd((__mmask8) -1, (__v8di)(__m512i)(index), \ 47 1.1 joerg (void const *)(addr), (int)(scale), \ 48 1.1 joerg (int)(hint)) 49 1.1 joerg 50 1.1 joerg #define _mm512_mask_prefetch_i64gather_ps(index, mask, addr, scale, hint) \ 51 1.1 joerg __builtin_ia32_gatherpfqps((__mmask8)(mask), (__v8di)(__m512i)(index), \ 52 1.1 joerg (void const *)(addr), (int)(scale), (int)(hint)) 53 1.1 joerg 54 1.1 joerg #define _mm512_prefetch_i64gather_ps(index, addr, scale, hint) \ 55 1.1 joerg __builtin_ia32_gatherpfqps((__mmask8) -1, (__v8di)(__m512i)(index), \ 56 1.1 joerg (void const *)(addr), (int)(scale), (int)(hint)) 57 1.1 joerg 58 1.1 joerg #define _mm512_prefetch_i32scatter_pd(addr, index, scale, hint) \ 59 1.1 joerg __builtin_ia32_scatterpfdpd((__mmask8)-1, (__v8si)(__m256i)(index), \ 60 1.1 joerg (void *)(addr), (int)(scale), \ 61 1.1 joerg (int)(hint)) 62 1.1 joerg 63 1.1 joerg #define _mm512_mask_prefetch_i32scatter_pd(addr, mask, index, scale, hint) \ 64 1.1 joerg __builtin_ia32_scatterpfdpd((__mmask8)(mask), (__v8si)(__m256i)(index), \ 65 1.1 joerg (void *)(addr), (int)(scale), \ 66 1.1 joerg (int)(hint)) 67 1.1 joerg 68 1.1 joerg #define _mm512_prefetch_i32scatter_ps(addr, index, scale, hint) \ 69 1.1 joerg __builtin_ia32_scatterpfdps((__mmask16)-1, (__v16si)(__m512i)(index), \ 70 1.1 joerg (void *)(addr), (int)(scale), (int)(hint)) 71 1.1 joerg 72 1.1 joerg #define _mm512_mask_prefetch_i32scatter_ps(addr, mask, index, scale, hint) \ 73 1.1 joerg __builtin_ia32_scatterpfdps((__mmask16)(mask), \ 74 1.1 joerg (__v16si)(__m512i)(index), (void *)(addr), \ 75 1.1 joerg (int)(scale), (int)(hint)) 76 1.1 joerg 77 1.1 joerg #define _mm512_prefetch_i64scatter_pd(addr, index, scale, hint) \ 78 1.1 joerg __builtin_ia32_scatterpfqpd((__mmask8)-1, (__v8di)(__m512i)(index), \ 79 1.1 joerg (void *)(addr), (int)(scale), \ 80 1.1 joerg (int)(hint)) 81 1.1 joerg 82 1.1 joerg #define _mm512_mask_prefetch_i64scatter_pd(addr, mask, index, scale, hint) \ 83 1.1 joerg __builtin_ia32_scatterpfqpd((__mmask8)(mask), (__v8di)(__m512i)(index), \ 84 1.1 joerg (void *)(addr), (int)(scale), \ 85 1.1 joerg (int)(hint)) 86 1.1 joerg 87 1.1 joerg #define _mm512_prefetch_i64scatter_ps(addr, index, scale, hint) \ 88 1.1 joerg __builtin_ia32_scatterpfqps((__mmask8)-1, (__v8di)(__m512i)(index), \ 89 1.1 joerg (void *)(addr), (int)(scale), (int)(hint)) 90 1.1 joerg 91 1.1 joerg #define _mm512_mask_prefetch_i64scatter_ps(addr, mask, index, scale, hint) \ 92 1.1 joerg __builtin_ia32_scatterpfqps((__mmask8)(mask), (__v8di)(__m512i)(index), \ 93 1.1 joerg (void *)(addr), (int)(scale), (int)(hint)) 94 1.1 joerg 95 1.1 joerg #undef __DEFAULT_FN_ATTRS 96 1.1 joerg 97 1.1 joerg #endif 98