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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20011218-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 because $27 hard register
2
   for the indirect call was exposed too early and reload couldn't
3
   allocate it for multiplication and division.  */
4
 
5
struct S {
6
  int a, b;
7
  void (*f) (long, int);
8
};
9
 
10
void foo (struct S *x)
11
{
12
  long c = x->a * 50;
13
  c /= (long) x->b;
14
  c *= (long) x->b;
15
  x->f (c, 0);
16
}

powered by: WebSVN 2.1.0

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