cpu_avx2.cpp 340 B

1234567891011
  1. #if !defined __AVX2__ // MSVC supports this flag since MSVS 2013
  2. #error "__AVX2__ define is missing"
  3. #endif
  4. #include <immintrin.h>
  5. void test()
  6. {
  7. int data[8] = {0,0,0,0, 0,0,0,0};
  8. __m256i a = _mm256_loadu_si256((const __m256i *)data);
  9. __m256i b = _mm256_bslli_epi128(a, 1); // available in GCC 4.9.3+
  10. }
  11. int main() { return 0; }