Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr45336-1.c
blobe2b4f658a3ffd3e9d0cd43c9d1ce075d37e7b236
1 /* PR target/45336 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -msse4 -mtune=generic" } */
4 /* { dg-final { scan-assembler-not "movsbl" } } */
5 /* { dg-final { scan-assembler-not "movswl" } } */
6 /* { dg-final { scan-assembler-not "movzbl" } } */
7 /* { dg-final { scan-assembler-not "movzwl" } } */
8 /* { dg-final { scan-assembler-not "cwtl" } } */
9 /* { dg-final { scan-assembler "pextrb" } } */
10 /* { dg-final { scan-assembler "pextrw" } } */
11 /* { dg-final { scan-assembler "pextrd" } } */
13 #include <smmintrin.h>
14 unsigned int foo8(__m128i x) { return _mm_extract_epi8(x, 4); }
15 unsigned int foo16(__m128i x) { return _mm_extract_epi16(x, 3); }
16 unsigned int foo32(__m128i x) { return _mm_extract_epi32(x, 2); }