ssse3.cpp 466 B

12345678910111213141516171819
  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 <tmmintrin.h>
  8. void pretend_used(__m128i*);
  9. int main(int, char*[])
  10. {
  11. __m128i mm = _mm_setzero_si128();
  12. pretend_used(&mm);
  13. mm = _mm_shuffle_epi8(_mm_alignr_epi8(mm, mm, 10), mm);
  14. pretend_used(&mm);
  15. return 0;
  16. }