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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-67.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-require-effective-target vect_int } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
#define N 16
7
 
8
int main1 (int a, int b)
9
{
10
  int i, j;
11
  int ia[N][4][N+8];
12
 
13
  /* Multidimensional array. Aligned. The "inner" dimensions
14
     are invariant in the inner loop. Store.
15
     Not vectorizable: unsupported operation. */
16
  for (i = 0; i < N; i++)
17
    {
18
      for (j = 0; j < N; j++)
19
        {
20
           ia[i][1][j+8] = (a == b);
21
        }
22
    }
23
 
24
  /* check results: */
25
  for (i = 0; i < N; i++)
26
    {
27
      for (j = 0; j < N; j++)
28
        {
29
           if (ia[i][1][j+8] != (a == b))
30
              abort();
31
        }
32
    }
33
 
34
  return 0;
35
}
36
 
37
int main (void)
38
{
39
  check_vect ();
40
 
41
  return main1 (2 ,7);
42
}
43
 
44
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  } } */
45
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
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.