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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20031214-1.c] - Rev 688

Compare with Previous | Blame | View Log

/* PR optimization/10312 */
/* Originator: Peter van Hoof <p dot van-hoof at qub dot ac dot uk> */
 
/* Verify that the strength reduction pass doesn't find
   illegitimate givs.  */
 
struct
{
  double a;
  int n[2];
} g = { 0., { 1, 2}};
 
int k = 0;
 
void
b (int *j)
{
}
 
int
main ()
{
  int j;
 
  for (j = 0; j < 2; j++)
    k = (k > g.n[j]) ? k : g.n[j];
 
  k++;
  b (&j);
 
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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