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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [logic.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 297 jeremybenn
logic (a, b)
2
     int *a, b;
3
{
4
  if (*a & 123)
5
    b = 1;
6
  if (*a & ~222)
7
    b = 2;
8
  if (124 & *a)
9
    b = 3;
10
  if (~111 & *a)
11
    b = 4;
12
 
13
  if (~*a & 23)
14
    b = 1;
15
  if (~*a & ~22)
16
    b = 2;
17
  if (24 & ~*a)
18
    b = 3;
19
  if (~11 & ~*a)
20
    b = 4;
21
 
22
  if (~*a & b)
23
    b = 1;
24
  if (~*a & ~b)
25
    b = 2;
26
  if (*a & ~*a)
27
    b = 3;
28
  return b;
29
}
30
 
31
x (a, b, c)
32
{
33
  for (a = 0;  --a > 0;);
34
  for (b = -1; --b > 0;);
35
  for (c = -65536; --c > 0;);
36
  return a + b + c;
37
}

powered by: WebSVN 2.1.0

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