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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020103-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* This testcase failed on Alpha at -O2 when simplifying conditional
2
   expressions.  */
3
 
4
int foo (void);
5
 
6
struct A
7
{
8
  int a, b, c, d;
9
};
10
 
11
void bar (struct A *x)
12
{
13
  int e, f;
14
 
15
  e = foo ();
16
  e = e / x->b;
17
  if (e < 1)
18
    e = 1;
19
  f = (x->a + x->c) / e;
20
  if (f < x->d)
21
    x->d -= (1 << 16) / 8;
22
}

powered by: WebSVN 2.1.0

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