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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-27.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre" } */
3
 
4
int foo (int i, int j, int b)
5
{
6
  int res = 0;
7
  if (b)
8
    res = i/j;
9
  /* We should insert the possibly trapping i/j.  */
10
  res += i/j;
11
  return res;
12
}
13
 
14
extern void bar (void);
15
int foo2 (int i, int j, int b)
16
{
17
  int res = 0;
18
  if (b)
19
    res = i/j;
20
  /* But we fail so here because of the possibly not returning
21
     call in the same basic-block.  */
22
  res += i/j;
23
  bar ();
24
  return res;
25
}
26
 
27
/* { dg-final { scan-tree-dump-times "# prephitmp" 1 "pre" } } */
28
/* { dg-final { scan-tree-dump-times "# prephitmp" 2 "pre" { xfail *-*-* } } } */
29
/* { 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.