1 // Test EH when V4SI SIMD registers are involved.
2 // Contributed by Aldy Hernandez (aldy@quesejoda.com).
4 // { dg-options "-O -w" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
5 // { dg-options "-O -w -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } }
6 // { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } }
9 #include "check-vect.h"
11 typedef int __attribute__((vector_size (16))) vecint;
13 vecint vecfunc (vecint beachbum)
20 vecint foobar = (vecint) {0, 0};
21 foobar = vecfunc (foobar);
28 vecint foobar = (vecint) {0, 0};
29 foobar = vecfunc (foobar);
49 /* Exit with zero if the hardware does not support AltiVec instructions. */