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/] [recip-6.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-options "-O1 -funsafe-math-optimizations -fno-trapping-math -fdump-tree-recip" } */
2
/* { dg-do compile } */
3
 
4
/* Test inserting in a block that does not contain a division.  */
5
 
6
extern int f2();
7
 
8
double m, n, o;
9
 
10
void f1(double y, double z, double w)
11
{
12
  double b, c, d, e, f;
13
 
14
  if (g ())
15
    b = 1 / y, c = z / y;
16
  else
17
    b = 3 / y, c = w / y;
18
 
19
  d = b / y;
20
  e = c / y;
21
  f = 1 / y;
22
 
23
  m = d;
24
  n = e;
25
  o = f;
26
}
27
 
28
/* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
29
/* { dg-final { cleanup-tree-dump "recip" } } */
30
 

powered by: WebSVN 2.1.0

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