Allow mmintrin headers to work with function specific target opts.
[platform/upstream/gcc.git] / gcc / testsuite / gcc.target / i386 / intrinsics_1.c
1 /* Test case to check if intrinsics and function specific target
2    optimizations work together.  Check by including x86intrin.h  */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -msse -mno-sse4.1 -mno-sse4.2" } */
6
7 #include <x86intrin.h>
8
9 __attribute__((target("sse4.2")))
10 __m128i foo(__m128i *V)
11 {
12     return _mm_stream_load_si128(V);
13 }