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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-outer-1a.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
#define N 64
4
signed short image[N][N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
5
signed short block[N][N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
6
 
7
/* Can't do outer-loop vectorization because of non-consecutive access.  */
8
 
9
int
10
foo (){
11
  int i,j;
12
  int diff = 0;
13
 
14
  for (i = 0; i < N; i++) {
15
    for (j = 0; j < N; j+=8) {
16
      diff += (image[i][j] - block[i][j]);
17
    }
18
  }
19
  return diff;
20
}
21
 
22
/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */
23
/* { dg-final { scan-tree-dump-times "strided access in outer loop" 1 "vect" { xfail vect_multiple_sizes } } } */
24
/* { dg-final { scan-tree-dump-times "strided access in outer loop" 2 "vect" { target vect_multiple_sizes } } } */
25
/* { 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.