Commit 86cefc49 by Alan Lawrence Committed by Alan Lawrence

Cleanup vect testsuite includes

	* gcc.dg/vect/fast-math-bb-slp-call-3.c: Declare functions as 'extern'
	rather than #including math.h & stdlib.h.
	* gcc.dg/vect/pr47001.c: Declare abort as 'extern', remove stdlib.h.
	* gcc.dg/vect/pr49771.c: Likewise.
	* gcc.dg/vect/vect-10-big-array.c: Likewise.
	* gcc.dg/vect/vect-neg-store-1.c: Likewise.
	* gcc.dg/vect/vect-neg-store-2.c: Likewise.
	* gcc.dg/vect/slp-37.c: Change NULL to 0, remove stdlib.h.
	* gcc.dg/vect/pr40254.c: Remove unnecessary include of stdlib.h.
	* gcc.dg/vect/pr44507.c: Likewise.
	* gcc.dg/vect/pr45902.c: Likewise.
	* gcc.dg/vect/slp-widen-mult-half.c: Likewise.
	* gcc.dg/vect/vect-117.c: Likewise.
	* gcc.dg/vect/vect-99.c: Likewise.
	* gcc.dg/vect/vect-aggressive-1.c: Likewise.
	* gcc.dg/vect/vect-cond-1.c: Likewise.
	* gcc.dg/vect/vect-cond-2.c: Likewise.
	* gcc.dg/vect/vect-cond-3.c: Likewise.
	* gcc.dg/vect/vect-cond-4.c: Likewise.
	* gcc.dg/vect/vect-mask-load-1.c: Likewise.
	* gcc.dg/vect/vect-mask-loadstore-1.c: Likewise.
	* gcc.dg/vect/vect-over-widen-1-big-array.c: Likewise.
	* gcc.dg/vect/vect-over-widen-1.c: Likewise.
	* gcc.dg/vect/vect-over-widen-2-big-array.c: Likewise.
	* gcc.dg/vect/vect-over-widen-2.c: Likewise.
	* gcc.dg/vect/vect-over-widen-3-big-array.c: Likewise.
	* gcc.dg/vect/vect-over-widen-3.c: Likewise.
	* gcc.dg/vect/vect-over-widen-4-big-array.c: Likewise.
	* gcc.dg/vect/vect-over-widen-4.c: Likewise.
	* gcc.dg/vect/vect-widen-mult-const-s16.c: Likewise.
	* gcc.dg/vect/vect-widen-mult-const-u16.c: Likewise.
	* gcc.dg/vect/vect-widen-mult-half-u8.c: Likewise.
	* gcc.dg/vect/vect-widen-mult-half.c: Likewise.
	* gcc.dg/vect/no-trapping-math-vect-ifcvt-11.c: Remove unnecessary
	include of signal.h.
	* gcc.dg/vect/no-trapping-math-vect-ifcvt-12.c: Likewise.
	* gcc.dg/vect/no-trapping-math-vect-ifcvt-13.c: Likewise.
	* gcc.dg/vect/no-trapping-math-vect-ifcvt-14.c: Likewise.
	* gcc.dg/vect/no-trapping-math-vect-ifcvt-15.c: Likewise.
	* gcc.dg/vect/no-trapping-math-vect-ifcvt-16.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-16.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-17.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-2.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-3.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-4.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-5.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-5.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-6.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-7.c: Likewise.
	* gcc.dg/vect/vect-ifcvt-9.c: Likewise.
	* gcc.dg/vect/vect-outer-5.c: Likewise.
	* gcc.dg/vect/vect-outer-6.c: Likewise.
	* gcc.dg/vect/vect-strided-u8-i8-gap4-unknown.c: Remove unnecessary
	include of stdio.h.

From-SVN: r232265
parent b832f61e
2016-01-12 Alan Lawrence <alan.lawrence@arm.com>
* gcc.dg/vect/fast-math-bb-slp-call-3.c: Declare functions as 'extern'
rather than #including math.h & stdlib.h.
* gcc.dg/vect/pr47001.c: Declare abort as 'extern', remove stdlib.h.
* gcc.dg/vect/pr49771.c: Likewise.
* gcc.dg/vect/vect-10-big-array.c: Likewise.
* gcc.dg/vect/vect-neg-store-1.c: Likewise.
* gcc.dg/vect/vect-neg-store-2.c: Likewise.
* gcc.dg/vect/slp-37.c: Change NULL to 0, remove stdlib.h.
* gcc.dg/vect/pr40254.c: Remove unnecessary include of stdlib.h.
* gcc.dg/vect/pr44507.c: Likewise.
* gcc.dg/vect/pr45902.c: Likewise.
* gcc.dg/vect/slp-widen-mult-half.c: Likewise.
* gcc.dg/vect/vect-117.c: Likewise.
* gcc.dg/vect/vect-99.c: Likewise.
* gcc.dg/vect/vect-aggressive-1.c: Likewise.
* gcc.dg/vect/vect-cond-1.c: Likewise.
* gcc.dg/vect/vect-cond-2.c: Likewise.
* gcc.dg/vect/vect-cond-3.c: Likewise.
* gcc.dg/vect/vect-cond-4.c: Likewise.
* gcc.dg/vect/vect-mask-load-1.c: Likewise.
* gcc.dg/vect/vect-mask-loadstore-1.c: Likewise.
* gcc.dg/vect/vect-over-widen-1-big-array.c: Likewise.
* gcc.dg/vect/vect-over-widen-1.c: Likewise.
* gcc.dg/vect/vect-over-widen-2-big-array.c: Likewise.
* gcc.dg/vect/vect-over-widen-2.c: Likewise.
* gcc.dg/vect/vect-over-widen-3-big-array.c: Likewise.
* gcc.dg/vect/vect-over-widen-3.c: Likewise.
* gcc.dg/vect/vect-over-widen-4-big-array.c: Likewise.
* gcc.dg/vect/vect-over-widen-4.c: Likewise.
* gcc.dg/vect/vect-widen-mult-const-s16.c: Likewise.
* gcc.dg/vect/vect-widen-mult-const-u16.c: Likewise.
* gcc.dg/vect/vect-widen-mult-half-u8.c: Likewise.
* gcc.dg/vect/vect-widen-mult-half.c: Likewise.
* gcc.dg/vect/no-trapping-math-vect-ifcvt-11.c: Remove unnecessary
include of signal.h.
* gcc.dg/vect/no-trapping-math-vect-ifcvt-12.c: Likewise.
* gcc.dg/vect/no-trapping-math-vect-ifcvt-13.c: Likewise.
* gcc.dg/vect/no-trapping-math-vect-ifcvt-14.c: Likewise.
* gcc.dg/vect/no-trapping-math-vect-ifcvt-15.c: Likewise.
* gcc.dg/vect/no-trapping-math-vect-ifcvt-16.c: Likewise.
* gcc.dg/vect/vect-ifcvt-16.c: Likewise.
* gcc.dg/vect/vect-ifcvt-17.c: Likewise.
* gcc.dg/vect/vect-ifcvt-2.c: Likewise.
* gcc.dg/vect/vect-ifcvt-3.c: Likewise.
* gcc.dg/vect/vect-ifcvt-4.c: Likewise.
* gcc.dg/vect/vect-ifcvt-5.c: Likewise.
* gcc.dg/vect/vect-ifcvt-5.c: Likewise.
* gcc.dg/vect/vect-ifcvt-6.c: Likewise.
* gcc.dg/vect/vect-ifcvt-7.c: Likewise.
* gcc.dg/vect/vect-ifcvt-9.c: Likewise.
* gcc.dg/vect/vect-outer-5.c: Likewise.
* gcc.dg/vect/vect-outer-6.c: Likewise.
* gcc.dg/vect/vect-strided-u8-i8-gap4-unknown.c: Remove unnecessary
include of stdio.h.
2016-01-12 Nick Clifton <nickc@redhat.com> 2016-01-12 Nick Clifton <nickc@redhat.com>
PR target/68913 PR target/68913
......
#include <stdlib.h> extern double sqrt (double);
#include <math.h> extern double fabs (double);
extern double ceil (double);
extern double floor (double);
extern void abort (void);
#define MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b))
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 64 #define N 64
......
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
int seeIf256ByteArrayIsConstant( int seeIf256ByteArrayIsConstant(
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 128 #define N 128
......
/* { dg-do compile } */ /* { dg-do compile } */
#include <stdlib.h> extern void abort (void);
#define N 128 #define N 128
......
#include <stdlib.h> extern void abort (void);
#include <stdarg.h> #include <stdarg.h>
static int a[1000]; static int a[1000];
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 128 #define N 128
...@@ -24,7 +23,7 @@ foo1 (s1 *arr) ...@@ -24,7 +23,7 @@ foo1 (s1 *arr)
{ {
ptr->a = 6; ptr->a = 6;
ptr->b = 7; ptr->b = 7;
ptr->c = NULL; ptr->c = 0;
ptr++; ptr++;
} }
...@@ -33,7 +32,7 @@ foo1 (s1 *arr) ...@@ -33,7 +32,7 @@ foo1 (s1 *arr)
{ {
if (arr[i].a != 6 if (arr[i].a != 6
|| arr[i].b != 7 || arr[i].b != 7
|| arr[i].c != NULL) || arr[i].c != 0)
abort(); abort();
} }
} }
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include "tree-vect.h" #include "tree-vect.h"
#include <stdlib.h>
#define N 32 #define N 32
#define COEF 32470 #define COEF 32470
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdlib.h>
extern void abort (void);
#define N 128 #define N 128
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
int ca[100]; int ca[100];
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_simd_clones } */ /* { dg-require-effective-target vect_simd_clones } */
/* { dg-additional-options "-fopenmp-simd" } */ /* { dg-additional-options "-fopenmp-simd" } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 64 #define N 64
......
/* { dg-require-effective-target vect_condition } */ /* { dg-require-effective-target vect_condition } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define M 32 #define M 32
......
/* { dg-require-effective-target vect_condition } */ /* { dg-require-effective-target vect_condition } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
/* { dg-require-effective-target vect_condition } */ /* { dg-require-effective-target vect_condition } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define M 32 #define M 32
......
/* { dg-require-effective-target vect_condition } */ /* { dg-require-effective-target vect_condition } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
#define M 32 #define M 32
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 16 #define N 16
......
/* { dg-additional-options "-Ofast -fno-common" } */ /* { dg-additional-options "-Ofast -fno-common" } */
/* { dg-additional-options "-Ofast -fno-common -mavx" { target avx_runtime } } */ /* { dg-additional-options "-Ofast -fno-common -mavx" { target avx_runtime } } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
__attribute__((noinline, noclone)) void __attribute__((noinline, noclone)) void
......
/* { dg-additional-options "-Ofast -fno-common" } */ /* { dg-additional-options "-Ofast -fno-common" } */
/* { dg-additional-options "-Ofast -fno-common -mavx" { target avx_runtime } } */ /* { dg-additional-options "-Ofast -fno-common -mavx" { target avx_runtime } } */
#include <stdlib.h>
#include "tree-vect.h" #include "tree-vect.h"
__attribute__((noinline, noclone)) void __attribute__((noinline, noclone)) void
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdlib.h> extern void abort (void);
__attribute__((noinline, noclone)) __attribute__((noinline, noclone))
void test1(short x[128]) void test1(short x[128])
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdlib.h> extern void abort (void);
__attribute__((noinline, noclone)) __attribute__((noinline, noclone))
void test1(short x[128], short D) void test1(short x[128], short D)
......
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 64 #define N 64
......
/* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_float } */
#include <stdarg.h> #include <stdarg.h>
#include <signal.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 64 #define N 64
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
/* { dg-require-effective-target vect_shift } */ /* { dg-require-effective-target vect_shift } */
#include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include "tree-vect.h" #include "tree-vect.h"
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
#include "tree-vect.h" #include "tree-vect.h"
#define N 160 #define N 160
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-additional-options "-fno-ipa-icf" } */ /* { dg-additional-options "-fno-ipa-icf" } */
#include "tree-vect.h" #include "tree-vect.h"
#include <stdlib.h>
#define N 32 #define N 32
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-additional-options "-fno-ipa-icf" } */ /* { dg-additional-options "-fno-ipa-icf" } */
#include "tree-vect.h" #include "tree-vect.h"
#include <stdlib.h>
#define N 32 #define N 32
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* { dg-additional-options "-fno-ipa-icf" } */ /* { dg-additional-options "-fno-ipa-icf" } */
#include "tree-vect.h" #include "tree-vect.h"
#include <stdlib.h>
#define N 32 #define N 32
#define COEF 32470 #define COEF 32470
......
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
#include "tree-vect.h" #include "tree-vect.h"
#include <stdlib.h>
#define N 32 #define N 32
#define COEF 32470 #define COEF 32470
......
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