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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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 f1(double y, double z, double w)
9
{
10
  double b, c, d, e, f;
11
 
12
  if (g ())
13
    b = 1 / y, c = z / y;
14
  else
15
    b = 3 / y, c = w / y;
16
 
17
  d = b / y;
18
  e = c / y;
19
  f = 1 / y;
20
 
21
  return d + e + f;
22
}
23
 
24
/* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
25
/* { dg-final { cleanup-tree-dump "recip" } } */
26
 

powered by: WebSVN 2.1.0

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