1 // Test EH when V4SI SIMD registers are involved.
2 // Contributed by Aldy Hernandez (aldy@quesejoda.com).
3 // { dg-options "-O -Wno-abi" }
4 // { dg-options "-O -w -msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
5 // { dg-options "-O -w" { target powerpc*-*-* } }
6 // { dg-options "-O -w -maltivec" { target { powerpc*-*-* && vmx_hw } } }
8 // { dg-require-effective-target sse_runtime { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
10 #include "check-vect.h"
12 typedef int __attribute__((vector_size (16))) vecint;
14 vecint vecfunc (vecint beachbum)
21 vecint foobar = (vecint) {0, 0};
22 foobar = vecfunc (foobar);
29 vecint foobar = (vecint) {0, 0};
30 foobar = vecfunc (foobar);
50 /* Exit with zero if the hardware does not support AltiVec instructions. */