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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fold-eqandshift-2.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/14752 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-original" } */
4
 
5
void bar (void);
6
 
7
void foo (unsigned int a)
8
{
9
  if ((a >> 2) & 1)
10
    bar ();
11
}
12
 
13
void baz (unsigned int b)
14
{
15
  if ((~b >> 2) & 1)
16
    bar ();
17
}
18
 
19
/* { dg-final { scan-tree-dump-times "\\(a \& 4\\) != 0" 1 "original" } } */
20
/* { dg-final { scan-tree-dump-times "\\(b \& 4\\) == 0" 1 "original" } } */
21
/* { dg-final { cleanup-tree-dump "original" } } */
22
 

powered by: WebSVN 2.1.0

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