avx2.cpp 499 B

1234567891011121314151617181920
  1. /*
  2. * Copyright Andrey Semashev 2007 - 2015.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #include <immintrin.h>
  8. void pretend_used(__m256i*);
  9. int main(int, char*[])
  10. {
  11. __m256i mm = _mm256_setzero_si256();
  12. pretend_used(&mm);
  13. mm = _mm256_shuffle_epi8(_mm256_alignr_epi8(mm, mm, 10), mm);
  14. pretend_used(&mm);
  15. _mm256_zeroupper();
  16. return 0;
  17. }