OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr20139.c] - Rev 154

Compare with Previous | Blame | View Log

/* PR tree-optimization/20139
   This testcase is derived from gcc.dg/20020720-1.c.  Here we check
   that the optimization happens at tree level.  */
 
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-final_cleanup" } */
 
extern double fabs (double);
extern void link_error (void);
 
void
foo (double x)
{
  double p, q;
 
  p = fabs (x);
  q = 0.0;
  if (p < q)
    link_error ();
}
 
/* { dg-final { scan-tree-dump-times "link_error" 0 "final_cleanup" } } */
/* { dg-final { cleanup-tree-dump "final_cleanup" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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