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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [960802-1.c] - Rev 826

Compare with Previous | Blame | View Log

long val = 0x5e000000;
 
long
f1 (void)
{
  return 0x132;
}
 
long
f2 (void)
{
  return 0x5e000000;
}
 
void
f3 (long b)
{
  val = b;
}
 
void
f4 ()
{
  long v = f1 ();
  long o = f2 ();
  v = (v & 0x00ffffff) | (o & 0xff000000);
  f3 (v);
}
 
main ()
{
  f4 ();
  if (val != 0x5e000132)
    abort ();
  exit (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.