cpu_avx512.cpp 312 B

12345678910111213
  1. #if defined __AVX512__ || defined __AVX512F__
  2. #include <immintrin.h>
  3. void test()
  4. {
  5. __m512i zmm = _mm512_setzero_si512();
  6. #if defined __GNUC__ && defined __x86_64__
  7. asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19");
  8. #endif
  9. }
  10. #else
  11. #error "AVX512 is not supported"
  12. #endif
  13. int main() { return 0; }