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/] [tree-ssa/] [pr32964.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized" } */
3
 
4
union A
5
{
6
 float a;
7
};
8
 
9
float t(float a)
10
{
11
  union A a1, a2, a3;
12
  int i;
13
 
14
  a1.a = a;
15
  for(i = 0; i<100; i++)
16
    {
17
      a2 = a1;
18
      a2.a += a;
19
      a1 = a2;
20
  }
21
  a3 = a1;
22
  return a3.a;
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "union" 0 "optimized"} } */
26
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.