Commit 34238210 by Jakub Jelinek Committed by Jakub Jelinek

vshuf-v8df.c: New test.

	* gcc.dg/torture/vshuf-v8df.c: New test.
	* gcc.dg/torture/vshuf-v8di.c: New test.
	* gcc.dg/torture/vshuf-v16sf.c: New test.
	* gcc.dg/torture/vshuf-v16si.c: New test.
	* gcc.dg/torture/vshuf-v32hi.c: New test.
	* gcc.dg/torture/vshuf-v64qi.c: New test.
	* gcc.dg/torture/vshuf-64.inc: New file.

From-SVN: r215867
parent 76e06b73
2014-10-03 Jakub Jelinek <jakub@redhat.com> 2014-10-03 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/torture/vshuf-v8df.c: New test.
* gcc.dg/torture/vshuf-v8di.c: New test.
* gcc.dg/torture/vshuf-v16sf.c: New test.
* gcc.dg/torture/vshuf-v16si.c: New test.
* gcc.dg/torture/vshuf-v32hi.c: New test.
* gcc.dg/torture/vshuf-v64qi.c: New test.
* gcc.dg/torture/vshuf-64.inc: New file.
PR tree-optimization/61403 PR tree-optimization/61403
* gcc.dg/torture/vshuf-32.inc: Add a new test 29. * gcc.dg/torture/vshuf-32.inc: Add a new test 29.
......
/* { 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(64)));
# if __SIZEOF_INT__ == 4
typedef unsigned int VI __attribute__((vector_size(64)));
# elif __SIZEOF_LONG__ == 4
typedef unsigned long VI __attribute__((vector_size(64)));
# else
# define UNSUPPORTED
# endif
#else
# define UNSUPPORTED
#endif
#include "vshuf-16.inc"
#include "vshuf-main.inc"
/* { 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_INT__ == 4
typedef unsigned int V __attribute__((vector_size(64)));
typedef V VI;
#elif __SIZEOF_LONG__ == 4
typedef unsigned long V __attribute__((vector_size(64)));
typedef V VI;
#else
# define UNSUPPORTED
#endif
#include "vshuf-16.inc"
#include "vshuf-main.inc"
/* { 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" } { "" } } */
typedef unsigned short V __attribute__((vector_size(64)));
typedef V VI;
#include "vshuf-32.inc"
#include "vshuf-main.inc"
/* { 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" } { "" } } */
typedef unsigned char V __attribute__((vector_size(64)));
typedef V VI;
#include "vshuf-64.inc"
#include "vshuf-main.inc"
/* { 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_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
typedef double V __attribute__((vector_size(64)));
typedef unsigned long long VI __attribute__((vector_size(64)));
#else
#define UNSUPPORTED
#endif
#include "vshuf-8.inc"
#include "vshuf-main.inc"
/* { 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_LONG_LONG__ == 8
typedef unsigned long long V __attribute__((vector_size(64)));
typedef V VI;
#else
#define UNSUPPORTED
#endif
#include "vshuf-8.inc"
#include "vshuf-main.inc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment