blob: 80a0f8c83bc7982059b40e6c25414c30ab589e19 [file] [log] [blame]
/* PR target/82848 */
/* { dg-do compile } */
/* { dg-options "-mno-altivec -mno-vsx -Wno-psabi" } */
#define C 3.68249351546114573519399405666776E-44f
#define vector __attribute__ ((altivec (vector__)))
vector float
foo (vector float a)
{
vector float b = __builtin_vec_madd (b, a, (vector float) { C, C, C, C }); /* { dg-error "requires the '-maltivec' option" } */
return b;
}