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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [builtins-47.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-ffast-math -fdump-tree-gimple" } */
3
 
4
extern double sqrt (double);
5
extern double pow (double, double);
6
extern void abort (void);
7
 
8
int main ()
9
{
10
  double x = -1.0;
11
  if (sqrt (pow (x, 2)) != 1.0)
12
    abort();
13
  if (sqrt (x*x) != 1.0)
14
    abort();
15
  return 0;
16
}
17
 
18
/* { dg-final { scan-tree-dump-times "sqrt" 0 "gimple" } } */
19
/* { dg-final { scan-tree-dump-times "pow" 0 "gimple" } } */
20
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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