Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / ppc64-abi-3.c
blob346839c4f8901f10c6aefff4a2a8339cacb8c99f
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. */
7 typedef int __attribute__((vector_size(16))) v4si;
8 typedef int __attribute__((vector_size(8))) v2si;
10 v4si
11 f(v4si v)
12 { /* { dg-error "altivec instructions are disabled" "PR18631" { xfail *-*-* } } */
13 return v;
16 v2si
17 g(v2si v)
19 return v;
22 int
23 main()
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;