1/* Test case to check if intrinsics and function specific target
2   optimizations work together.  Check if an error is issued in
3   -O2 mode when foo calls an intrinsic without the right target
4   attribute.  */
5
6/* { dg-do compile } */
7/* { dg-options "-O2 -msse -mno-sse4.1 -mno-sse4.2" } */
8
9#include <smmintrin.h>
10
11__m128i foo(__m128i *V)
12{
13    return _mm_stream_load_si128(V); /* { dg-error "called from here" } */
14}
15
16/* { dg-prune-output ".*inlining failed.*" }  */
17