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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-11.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
double cos (double);
4
double f(double a)
5
{
6
  double b;
7
  double c,d;
8
 if (a < 2.0)
9
   {
10
     c = cos (a);
11
   }
12
 else
13
   {
14
     c = 1.0;
15
   }
16
 d = cos (a);
17
 return d + c;
18
}
19
 
20
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */
21
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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