1 /*
2  *             Copyright Andrey Semashev 2020.
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 
8 #include <smmintrin.h>
9 
main(int,char * [])10 int main(int, char*[])
11 {
12     __m128i mm = _mm_setzero_si128();
13     mm = _mm_cmpeq_epi64(mm, mm);
14     mm = _mm_castps_si128(_mm_shuffle_ps(_mm_castsi128_ps(mm), _mm_castsi128_ps(mm), _MM_SHUFFLE(2, 0, 2, 0)));
15     mm = _mm_packs_epi32(mm, mm);
16     return _mm_movemask_epi8(mm);
17 }
18