blob: 8d35157d0f4a31428e336c581c364ccc7aa8736d [file] [log] [blame]
/* PR target/37168 */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O2 -maltivec" } */
#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 });
return b;
}