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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [andor-2.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-original" } */
3
 
4
int test1(int a, int b)
5
{
6
  return (a & b) | b;
7
}
8
 
9
int test2(int c, int d)
10
{
11
  return (c & d) | c;
12
}
13
 
14
int test3(int e, int f)
15
{
16
  return e | (e & f);
17
}
18
 
19
int test4(int g, int h)
20
{
21
  return g | (h & g);
22
}
23
 
24
int test5(int i, int j)
25
{
26
  return (i | j) & j;
27
}
28
 
29
int test6(int k, int l)
30
{
31
  return (k | l) & k;
32
}
33
 
34
int test7(int m, int n)
35
{
36
  return m & (m | n);
37
}
38
 
39
int test8(int o, int p)
40
{
41
  return o & (p | o);
42
}
43
 
44
/* { dg-final { scan-tree-dump-times "return b;" 1 "original" } } */
45
/* { dg-final { scan-tree-dump-times "return c;" 1 "original" } } */
46
/* { dg-final { scan-tree-dump-times "return e;" 1 "original" } } */
47
/* { dg-final { scan-tree-dump-times "return g;" 1 "original" } } */
48
/* { dg-final { scan-tree-dump-times "return j;" 1 "original" } } */
49
/* { dg-final { scan-tree-dump-times "return k;" 1 "original" } } */
50
/* { dg-final { scan-tree-dump-times "return m;" 1 "original" } } */
51
/* { dg-final { scan-tree-dump-times "return o;" 1 "original" } } */
52
/* { 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.