OSDN Git Service

* gcc.target/i386/pr34256.c: Update number of mov insns
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / powerpc / altivec-21.c
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
4
5 #include <altivec.h>
6
7 extern void preansi();
8
9 typedef void (*pvecfunc) ();
10
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__ */
17 }
18