2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr82848.c
blob80a0f8c83bc7982059b40e6c25414c30ab589e19
1 /* PR target/82848 */
2 /* { dg-do compile } */
3 /* { dg-options "-mno-altivec -mno-vsx -Wno-psabi" } */
5 #define C 3.68249351546114573519399405666776E-44f
6 #define vector __attribute__ ((altivec (vector__)))
8 vector float
9 foo (vector float a)
11 vector float b = __builtin_vec_madd (b, a, (vector float) { C, C, C, C }); /* { dg-error "requires the '-maltivec' option" } */
12 return b;