OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-63.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-require-effective-target vect_int } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
#define N 16
7
 
8
__attribute__ ((noinline))
9
int main1 ()
10
{
11
  int i, j;
12
  int ib[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
13
  int ia[N*2][4][N];
14
 
15
  /* Multidimensional array. Aligned.
16
     The first dimension depends on j: not vectorizable. */
17
  for (i = 0; i < N; i++)
18
    {
19
      for (j = 0; j < N; j++)
20
        {
21
           ia[i + j][1][j] = ib[i];
22
        }
23
    }
24
 
25
  /* check results: */
26
  for (i = 0; i < N; i++)
27
    {
28
      for (j = 0; j < N; j++)
29
        {
30
           if (ia[i + j][1][j] != ib[i])
31
              abort();
32
        }
33
    }
34
 
35
  return 0;
36
}
37
 
38
int main (void)
39
{
40
  check_vect ();
41
 
42
  return main1 ();
43
}
44
 
45
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */
46
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.