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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [no-scevccp-vect-iv-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-require-effective-target vect_int } */
2
 
3
#include <stdarg.h>
4
#include "tree-vect.h"
5
 
6
#define N 26
7
 
8
__attribute__ ((noinline)) int main1 (int X)
9
{
10
  int s = X;
11
  int i;
12
 
13
  /* vectorization of reduction with induction.
14
     Need -fno-tree-scev-cprop or else the loop is eliminated.  */
15
  for (i = 0; i < N; i++)
16
    s += i;
17
 
18
  return s;
19
}
20
 
21
int main (void)
22
{
23
  int s;
24
  check_vect ();
25
 
26
  s = main1 (3);
27
  if (s != 328)
28
    abort ();
29
 
30
  return 0;
31
}
32
 
33
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
34
/* { 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.