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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr33615-2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fnon-call-exceptions -fdump-tree-pre-details -w" } */
3
 
4
extern volatile int y;
5
 
6
double
7
foo (double a, int x)
8
{
9
  while (x--)
10
    {
11
      y++;
12
      a += 1.0 / 0.0;
13
    }
14
  return a;
15
}
16
 
17
// The expression 1.0 / 0.0 should not be treated as a loop invariant
18
// if it may throw an exception.
19
// { dg-final { scan-tree-dump-times "Replaced 1\\\.0e\\\+0 / 0\\\.0" 0 "pre" } }
20
// { dg-final { cleanup-tree-dump "pre" } }

powered by: WebSVN 2.1.0

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