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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [fold-eqandshift-3.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 middle-end/29726 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-original" } */
4
 
5
void foo (void);
6
 
7
int test1 (int a)
8
{
9
  if ((a >> 3) & 134217728)
10
    foo ();
11
}
12
 
13
int test2 (unsigned int b)
14
{
15
  if ((b >> 3) & 134217728)
16
    foo ();
17
}
18
 
19
/* { dg-final { scan-tree-dump-times "\\(a \& 1073741824\\) != 0" 1 "original" } } */
20
/* { dg-final { scan-tree-dump-times "\\(b \& 1073741824\\) != 0" 1 "original" } } */
21
/* { dg-final { cleanup-tree-dump "original" } } */

powered by: WebSVN 2.1.0

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