aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/intrinsics_6.c
blob: eea22bb79517d4da2ee2740d6e19e127cf170740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Test case to check if intrinsics and function specific target
   optimizations work together.  Check if an error is issued in
   -O0 mode when foo calls an intrinsic without the right target
   attribute.  */

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

#include <smmintrin.h>

__m128i foo(__m128i *V)
{
    return _mm_stream_load_si128(V); /* { dg-error "called from here" } */
}

/* { dg-prune-output ".*inlining failed.*" }  */