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.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20040210-1.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 "-O1 -fdump-tree-phiopt1-details" } */
3
 
4
 
5
void abort(void);
6
void exit(int);
7
 
8
int x, y;
9
 
10
static void __attribute__ ((noinline))
11
init_xy(void)
12
{
13
  x = 3;
14
  y = 2;
15
}
16
 
17
void
18
test4(void)
19
{
20
  init_xy();
21
  if ((x < y ? x++ : y++) != 2)
22
    abort ();
23
}
24
 
25
int
26
main(){
27
  test4 ();
28
  exit (0);
29
}
30
 
31
/* Should have no more than two ifs left after straightening.  */
32
/* { dg-final { scan-tree-dump-times "if " 2 "phiopt1"} } */
33
/* { dg-final { cleanup-tree-dump "phiopt1" } } */

powered by: WebSVN 2.1.0

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