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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [recip-7.c] - Blame information for rev 749

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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 double h();
7
 
8
double m, n, o;
9
 
10
void f(int x, double z, double w)
11
{
12
  double b, c, d, e, f;
13
  double y = h ();
14
 
15
  if (x)
16
    b = 1 / y, c = z / y;
17
  else
18
    b = 3 / y, c = w / y;
19
 
20
  d = b / y;
21
  e = c / y;
22
  f = 1 / y;
23
 
24
  m = d;
25
  n = e;
26
  o = f;
27
}
28
 
29
/* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
30
/* { dg-final { cleanup-tree-dump "recip" } } */
31
 

powered by: WebSVN 2.1.0

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