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/] [gcc.dg/] [tree-ssa/] [20041002-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 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.