1 // Test EH when V2SI SIMD registers are involved.
2 // Contributed by Aldy Hernandez (aldy@quesejoda.com).
4 // { dg-options "-O -w" { target i?86-*-* } }
6 // { dg-error "" "PR target/12916" { target sparc*-*-* } 10 }
8 typedef int __attribute__((mode(V2SI))) vecint;
10 vecint vecfunc (vecint beachbum)
17 /* Force a use of a V2SI register if available. On the PPC/E500,
18 this will cause the compiler to save the registers in this
19 function in 64-bits. */
20 vecint foobar = (vecint) {0, 0};
21 foobar = vecfunc (foobar);
28 vecint foobar = (vecint) {0, 0};
29 foobar = vecfunc (foobar);