Remove vect-ifcvt-1.c

From-SVN: r100947
This commit is contained in:
Devang Patel 2005-06-14 11:47:36 -07:00 committed by Devang Patel
parent 0bddd9360b
commit c9a3d12830
2 changed files with 4 additions and 75 deletions

View file

@ -1,3 +1,7 @@
2005-06-14 Devang Patel <dpatel@apple.com>
* gcc.dg/vect/vect-ifcvt-1.c: Remove.
2005-06-14 Nathan Sidwell <nathan@codesourcery.com>
PR c++/21929

View file

@ -1,75 +0,0 @@
/* { dg-require-effective-target vect_condition } */
#include <stdarg.h>
#include <signal.h>
#define N 64
#define MAX 42
extern void abort(void);
int main ()
{
int A[N];
int B[N];
int C[N];
int D[N];
int i, j;
for (i = 0; i < N; i++)
{
A[i] = i;
B[i] = i;
C[i] = i;
D[i] = i;
}
/* Vectorizable */
for (i = 0; i < 16; i++)
{
A[i] = A[i+20];
}
/* check results: */
for (i = 0; i < 16; i++)
{
if (A[i] != A[i+20])
abort ();
}
/* Vectorizable */
for (i = 0; i < 16; i++)
{
B[i] = B[i] + 5;
}
/* check results: */
for (i = 0; i < 16; i++)
{
if (B[i] != C[i] + 5)
abort ();
}
/* Not vectorizable */
for (i = 0; i < 4; i++)
{
C[i] = C[i+3];
}
/* check results: */
for (i = 0; i < 4; i++)
{
if (C[i] != D[i+3])
abort ();
}
return 0;
}
/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "accesses have the same alignment." 2 "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */