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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [no-scevccp-noreassoc-outer-2.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 40
7
int a[200*N+N];
8
 
9
__attribute__ ((noinline)) void
10
foo (){
11
  int i,j;
12
  int sum,s=0;
13
 
14
  for (i = 0; i < 200*N; i++) {
15
    sum = 0;
16
    for (j = 0; j < N; j++) {
17
      sum += (i + j);
18
      i++;
19
    }
20
    a[i] = sum;
21
  }
22
}
23
 
24
int main (void)
25
{
26
  int i,j,k=0;
27
  int sum,s=0;
28
 
29
  check_vect ();
30
 
31
  foo ();
32
 
33
    /* check results:  */
34
  for (i=0; i<200*N; i++)
35
    {
36
      sum = 0;
37
      for (j = 0; j < N; j++){
38
        sum += (j + i);
39
        i++;
40
      }
41
      if (a[i] != sum)
42
        abort ();
43
    }
44
 
45
  return 0;
46
}
47
 
48
/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED." 1 "vect" { xfail *-*-* } } } */
49
/* { 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.