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-even-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-original" } */
3
int test1(int a)
4
{
5
  return !(a & 1);
6
}
7
 
8
int test2(int b)
9
{
10
  return (b & 1) == 0;
11
}
12
 
13
int test3(int c)
14
{
15
  return (c & 1) ^ 1;
16
}
17
 
18
int test4(int d)
19
{
20
  return (d ^ 1) & 1;
21
}
22
 
23
int test5(int e)
24
{
25
  return ~e & 1;
26
}
27
 
28
/* { dg-final { scan-tree-dump-times "\\(a \& 1\\) == 0" 1 "original" } } */
29
/* { dg-final { scan-tree-dump-times "\\(b \& 1\\) == 0" 1 "original" } } */
30
/* { dg-final { scan-tree-dump-times "\\(c \& 1\\) == 0" 1 "original" } } */
31
/* { dg-final { scan-tree-dump-times "\\(d \& 1\\) == 0" 1 "original" } } */
32
/* { dg-final { scan-tree-dump-times "\\(e \& 1\\) == 0" 1 "original" } } */
33
/* { 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.