[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / altivec-21.c
blob906aa197abf71bd2aaa4158e4feb9c0d381de7a9
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
5 #include <altivec.h>
7 extern void preansi();
9 typedef void (*pvecfunc) ();
11 void foo(pvecfunc pvf) {
12 vector int v = (vector int){1, 2, 3, 4};
13 #ifndef __LP64__
14 preansi (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
15 (*pvf) (4, 4.0, v); /* { dg-error "AltiVec argument passed to unprototyped function" "" { target ilp32 } } */
16 #endif /* __LP64__ */