gcc/testsuite/gcc.target/i386/intrinsics_6.c
raw| 1 | /* Test case to check if intrinsics and function specific target |
| 2 | optimizations work together. Check if an error is issued in |
| 3 | -O0 mode when foo calls an intrinsic without the right target |
| 4 | attribute. */ |
| 5 | |
| 6 | /* { dg-do compile } */ |
| 7 | /* { dg-options "-O0 -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-message "called from here" } */ |
| 14 | } |
| 15 | |
| 16 | /* { dg-prune-output ".*inlining failed.*" } */ |