Path: blob/master/tools/android-sdk/renderscript/clang-include/avx512pfintrin.h
496 views
/*===------------- avx512pfintrin.h - PF intrinsics ------------------===1*2*3* Permission is hereby granted, free of charge, to any person obtaining a copy4* of this software and associated documentation files (the "Software"), to deal5* in the Software without restriction, including without limitation the rights6* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell7* copies of the Software, and to permit persons to whom the Software is8* furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER17* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,18* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN19* THE SOFTWARE.20*21*===-----------------------------------------------------------------------===22*/23#ifndef __IMMINTRIN_H24#error "Never use <avx512pfintrin.h> directly; include <immintrin.h> instead."25#endif2627#ifndef __AVX512PFINTRIN_H28#define __AVX512PFINTRIN_H2930/* Define the default attributes for the functions in this file. */31#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512pf")))3233#define _mm512_mask_prefetch_i32gather_pd(index, mask, addr, scale, hint) __extension__ ({\34__builtin_ia32_gatherpfdpd((__mmask8)(mask), (__v8si)(__m256i)(index), \35(long long const *)(addr), (int)(scale), \36(int)(hint)); })3738#define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) __extension__ ({\39__builtin_ia32_gatherpfdpd((__mmask8) -1, (__v8si)(__m256i)(index), \40(long long const *)(addr), (int)(scale), \41(int)(hint)); })4243#define _mm512_mask_prefetch_i32gather_ps(index, mask, addr, scale, hint) ({\44__builtin_ia32_gatherpfdps((__mmask16)(mask), \45(__v16si)(__m512i)(index), (int const *)(addr), \46(int)(scale), (int)(hint)); })4748#define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) ({\49__builtin_ia32_gatherpfdps((__mmask16) -1, \50(__v16si)(__m512i)(index), (int const *)(addr), \51(int)(scale), (int)(hint)); })5253#define _mm512_mask_prefetch_i64gather_pd(index, mask, addr, scale, hint) __extension__ ({\54__builtin_ia32_gatherpfqpd((__mmask8)(mask), (__v8di)(__m512i)(index), \55(long long const *)(addr), (int)(scale), \56(int)(hint)); })5758#define _mm512_prefetch_i64gather_pd(index, addr, scale, hint) __extension__ ({\59__builtin_ia32_gatherpfqpd((__mmask8) -1, (__v8di)(__m512i)(index), \60(long long const *)(addr), (int)(scale), \61(int)(hint)); })6263#define _mm512_mask_prefetch_i64gather_ps(index, mask, addr, scale, hint) ({\64__builtin_ia32_gatherpfqps((__mmask8)(mask), (__v8di)(__m512i)(index), \65(int const *)(addr), (int)(scale), (int)(hint)); })6667#define _mm512_prefetch_i64gather_ps(index, addr, scale, hint) ({\68__builtin_ia32_gatherpfqps((__mmask8) -1, (__v8di)(__m512i)(index), \69(int const *)(addr), (int)(scale), (int)(hint)); })7071#define _mm512_prefetch_i32scatter_pd(addr, index, scale, hint) __extension__ ({\72__builtin_ia32_scatterpfdpd((__mmask8)-1, (__v8si)(__m256i)(index), \73(long long *)(addr), (int)(scale), \74(int)(hint)); })7576#define _mm512_mask_prefetch_i32scatter_pd(addr, mask, index, scale, hint) __extension__ ({\77__builtin_ia32_scatterpfdpd((__mmask8)(mask), (__v8si)(__m256i)(index), \78(long long *)(addr), (int)(scale), \79(int)(hint)); })8081#define _mm512_prefetch_i32scatter_ps(addr, index, scale, hint) __extension__ ({\82__builtin_ia32_scatterpfdps((__mmask16)-1, (__v16si)(__m512i)(index), \83(int *)(addr), (int)(scale), (int)(hint)); })8485#define _mm512_mask_prefetch_i32scatter_ps(addr, mask, index, scale, hint) __extension__ ({\86__builtin_ia32_scatterpfdps((__mmask16)(mask), \87(__v16si)(__m512i)(index), (int *)(addr), \88(int)(scale), (int)(hint)); })8990#define _mm512_prefetch_i64scatter_pd(addr, index, scale, hint) __extension__ ({\91__builtin_ia32_scatterpfqpd((__mmask8)-1, (__v8di)(__m512i)(index), \92(long long *)(addr), (int)(scale), \93(int)(hint)); })9495#define _mm512_mask_prefetch_i64scatter_pd(addr, mask, index, scale, hint) __extension__ ({\96__builtin_ia32_scatterpfqpd((__mmask8)(mask), (__v8di)(__m512i)(index), \97(long long *)(addr), (int)(scale), \98(int)(hint)); })99100#define _mm512_prefetch_i64scatter_ps(addr, index, scale, hint) __extension__ ({\101__builtin_ia32_scatterpfqps((__mmask8)-1, (__v8di)(__m512i)(index), \102(int *)(addr), (int)(scale), (int)(hint)); })103104#define _mm512_mask_prefetch_i64scatter_ps(addr, mask, index, scale, hint) __extension__ ({\105__builtin_ia32_scatterpfqps((__mmask8)(mask), (__v8di)(__m512i)(index), \106(int *)(addr), (int)(scale), (int)(hint)); })107108#undef __DEFAULT_FN_ATTRS109110#endif111112113