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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-iv-11.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
int main1 (int len)
7
{
8
  int s = 0;
9
  int i = len;
10
 
11
  /* vectorization of induction with reduction.  */
12
  for ( ; i > 1; i -=2)
13
    s += i;
14
 
15
  return s;
16
}
17
 
18
int main (void)
19
{
20
  int s;
21
  check_vect ();
22
 
23
  s = main1 (26);
24
  if (s != 182)
25
    abort ();
26
 
27
  return 0;
28
}
29
 
30
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
31
/* { 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.