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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-ifcombine-4.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-optimized" } */
3
 
4
/* Testcase extracted from PR15353.  */
5
 
6
extern void bar(void);
7
 
8
void foo (int x, int a)
9
{
10
  /* if ((x < a) || (x != a)) return; else bar (); */
11
  if (x < a)
12
    return;
13
  if (x != a)
14
    return;
15
 
16
  /* else */
17
  bar ();
18
}
19
 
20
/* { dg-final { scan-tree-dump "!=" "optimized" } } */
21
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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