aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/intrinsics_2.c
blob: 329ac8864c7c218fb51e1437b81099ba4303ddbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test case to check if intrinsics and function specific target
   optimizations work together.  Check by including immintrin.h  */

/* { dg-do compile } */
/* { dg-options "-O2 -msse -mno-sse4.1" } */

#include <immintrin.h>

__attribute__((target("sse4.2")))
__m128i foo(__m128i *V)
{
    return _mm_stream_load_si128(V);
}