summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr37168.c
blob: 8d35157d0f4a31428e336c581c364ccc7aa8736d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* 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;
}