diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/vshuf-v4sf.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/vshuf-v4sf.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/vshuf-v4sf.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/vshuf-v4sf.c new file mode 100644 index 000000000..4db59f9da --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/vshuf-v4sf.c @@ -0,0 +1,21 @@ +/* { dg-do run } */ +/* { dg-options "-DEXPENSIVE" { target run_expensive_tests } } */ +/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */ +/* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O2" } } */ +/* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */ + +#if __SIZEOF_FLOAT__ == 4 +typedef float V __attribute__((vector_size(16))); +# if __SIZEOF_INT__ == 4 +typedef unsigned int VI __attribute__((vector_size(16))); +# elif __SIZEOF_LONG__ == 4 +typedef unsigned long VI __attribute__((vector_size(16))); +# else +# define UNSUPPORTED +# endif +#else +# define UNSUPPORTED +#endif + +#include "vshuf-4.inc" +#include "vshuf-main.inc" |