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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr47001.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-do compile } */
2
 
3
#include <stdlib.h>
4
 
5
#define N 128
6
 
7
int a[N];
8
 
9
int main1 (int res0, int res1)
10
{
11
  int i;
12
  int sum0 = 0, sum1 = 0;
13
 
14
  for (i = 0; i < N/2; i++) {
15
    sum1 += a[2*i];
16
    sum0 += a[2*i];
17
  }
18
 
19
  /* Check results:  */
20
  if (sum0 != res0
21
      || sum1 != res1)
22
    abort ();
23
 
24
  return 0;
25
}
26
 
27
/* { 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.