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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20041002-1.c] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR tree-optimization/16632
2
   fold() failed to see the following "if" statements never trigger.  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O2 -fdump-tree-ssa" } */
6
 
7
int
8
foo (int i)
9
{
10
  if ((i | 3) == 1)
11
    return 1;
12
  return 0;
13
}
14
 
15
int
16
bar (int i)
17
{
18
  if ((i & 4) == 2)
19
    return 1;
20
  return 0;
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "if" 0 "ssa" } } */
24
/* { dg-final { cleanup-tree-dump "ssa" } } */

powered by: WebSVN 2.1.0

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