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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [ggc-pr37574.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
#include <stdarg.h>
4
 
5
unsigned short in[40 +128];
6
int main (void) {
7
  int i = 0, j = 0;
8
  unsigned int diff;
9
  unsigned int s=0,sum=0;
10
  for (i = 0; i < 40;i++)
11
   {
12
     diff = 0;
13
     for (j = 0; j < 128;j+=8)
14
       diff += in[j+i];
15
     s += ((unsigned short)diff>>3);
16
   }
17
   if (s != sum)
18
     return -1;
19
   return 0;
20
}
21
 
22
/* { 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.