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