OSDN Git Service

Index: gcc/ChangeLog
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / ppc64-abi-3.c
1 /* { dg-do compile { target powerpc64-*-linux* } } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-Wall" } */
4 /* Testcase to check for ABI compliance of parameter passing
5    for the PowerPC64 ABI.  */
6
7 typedef int __attribute__((vector_size(16))) v4si;
8 typedef int __attribute__((vector_size(8))) v2si;
9
10 v4si 
11 f(v4si v)
12 { /* { dg-error "altivec instructions are disabled" "PR18631" { xfail *-*-* } } */
13     return v;
14 }
15
16 v2si 
17 g(v2si v)
18 {
19     return v;
20 }
21
22 int 
23 main()
24 {
25     v4si v;
26     v2si w;
27     v = f (v); /* { dg-error "altivec instructions are disabled" "PR18631" { xfail *-*-* } } */
28     w = g (w);
29     return 0;
30 }