This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / ppc64-abi-3.c
blob58f161dae6c6050c33f1074fa295839972758087
1 /* { dg-do compile { target powerpc64-*-linux* } } */
2 /* { dg-options "-Wall" } */
3 /* Testcase to check for ABI compliance of parameter passing
4 for the PowerPC64 ABI. */
6 typedef int __attribute__((mode(V4SI))) v4si;
7 typedef int __attribute__((mode(V2SI))) v2si;
9 v4si
10 f(v4si v)
11 { /* { dg-error "altivec instructions are disabled" } */
12 return v;
15 v2si
16 g(v2si v)
18 return v;
21 int
22 main()
24 v4si v;
25 v2si w;
26 v = f (v); /* { dg-error "altivec instructions are disabled" } */
27 w = g (w);