cpu_avx512common.cpp 354 B

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