OSDN Git Service

* c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / i386-sse-vect-types.c
1 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O0 -msse2" } */
3
4 /* Test the intrinsics without optimization.  All of them are
5    defined as inline functions in mmintrin.h that reference the proper
6    builtin functions.  Defining away "static" and "__inline" results in
7    all of them being compiled as proper functions.  */
8
9 #define static
10 #define __inline
11
12 #include <xmmintrin.h>
13
14 __m128d foo1(__m128d z, __m128d  a, int N) { 
15   int i;
16   for (i=0; i<N; i++) {
17     a = _mm_add_ps(z, a); /* { dg-error "incompatible type" } */
18   }
19   return a;
20 }