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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [no-tree-pre-pr45241.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
/* PR tree-optimization/45241 */
2
/* { dg-do compile } */
3
/* { dg-options "-ftree-vectorize" } */
4
 
5
int
6
foo (short x)
7
{
8
  short i, y;
9
  int sum;
10
 
11
  for (i = 0; i < x; i++)
12
    y = x * i;
13
 
14
  for (i = x; i > 0; i--)
15
    sum += y;
16
 
17
  return sum;
18
}
19
 
20
/* { 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.