blob: 37ad87de0fff4055d78683a8b8f630597bdff076 [file] [log] [blame]
/* APPLE LOCAL file mainline 10-06-2005 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O0 -msse2" } */
/* Test the intrinsics without optimization. All of them are
defined as inline functions in mmintrin.h that reference the proper
builtin functions. Defining away "static" and "__inline" results in
all of them being compiled as proper functions. */
#define static
#define __inline
#include <emmintrin.h>
__m128d foo1(__m128d z, __m128d a, int N) {
int i;
for (i=0; i<N; i++) {
a = _mm_add_ps(z, a); /* { dg-error "incompatible type" } */
}
return a;
}