1/* { dg-do compile } */ 2/* { dg-options "-O0 -msse2" } */ 3/* { dg-require-effective-target sse2 } */ 4 5#include <xmmintrin.h> 6 7__m128d foo1(__m128d z, __m128d a, int N) { 8 int i; 9 for (i=0; i<N; i++) { 10 a = _mm_add_ps(z, a); /* { dg-error "incompatible type" } */ 11 } 12 return a; 13} 14/* { dg-message "note: expected '\[^'\n\]*' but argument is of type '\[^'\n\]*'" "note: expected" { target *-*-* } 0 } */ 15