cpu_avx512knm.cpp 414 B

1234567891011121314151617
  1. #if defined __AVX512__ || defined __AVX512F__
  2. #include <immintrin.h>
  3. void test()
  4. {
  5. __m512 a, b, c, d, e;
  6. __m512i ai, bi, ci, di, ei, fi;
  7. __m128 *mem;
  8. __m128i *memi;
  9. __mmask16 m;
  10. a = _mm512_4fnmadd_ps(a, b, c, d, e, mem);
  11. ai = _mm512_4dpwssd_epi32(ai, bi, ci, di, ei, memi);
  12. ai = _mm512_popcnt_epi64(ai);
  13. }
  14. #else
  15. #error "AVX512-KNM is not supported"
  16. #endif
  17. int main() { return 0; }