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/] [pr31343.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
#define N 16
4
 
5
struct
6
{
7
  unsigned int x;
8
  unsigned int y;
9
} pS [100];
10
 
11
void
12
main1 ()
13
{
14
  int i, j;
15
  unsigned int ub[N] =
16
    { 1, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45 };
17
  unsigned int uc[N] =
18
    { 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
19
  unsigned int udiffx, udiffy;
20
 
21
  for (i = 0; i < N; i++)
22
    {
23
      pS[i].x = 0;
24
      pS[i].y = 0;
25
      for (j = 0; j < N; j++)
26
      {
27
        udiffx = (ub[j] - uc[j]);
28
        udiffy = (ub[j] - uc[j]);
29
        pS[i].x = udiffx;
30
        pS[i].y = udiffy;
31
      }
32
    }
33
}
34
 
35
/* { 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.