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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20031214-1.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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