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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR middle-end/29726 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-original" } */
4
 
5
void foo (void);
6
#if(__SIZEOF_INT__ >= 4) 
7
int test1 (int a)
8
#else
9
int test1 (long a)
10
#endif
11
 
12
{
13
  if ((a >> 3) & 134217728)
14
    foo ();
15
}
16
 
17
#if(__SIZEOF_INT__ >= 4) 
18
int test2 (unsigned int b)
19
#else
20
int test2 (unsigned long b)
21
#endif
22
{
23
  if ((b >> 3) & 134217728)
24
    foo ();
25
}
26
 
27
/* { dg-final { scan-tree-dump-times "\\(a \& 1073741824\\) != 0" 1 "original" } } */
28
/* { dg-final { scan-tree-dump-times "\\(b \& 1073741824\\) != 0" 1 "original" } } */
29
/* { 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.