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/] [bf64-1.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
struct tmp
struct tmp
{
{
  long long int pad : 12;
  long long int pad : 12;
  long long int field : 52;
  long long int field : 52;
};
};
 
 
struct tmp2
struct tmp2
{
{
  long long int field : 52;
  long long int field : 52;
  long long int pad : 12;
  long long int pad : 12;
};
};
 
 
struct tmp
struct tmp
sub (struct tmp tmp)
sub (struct tmp tmp)
{
{
  tmp.field |= 0x0008765412345678LL;
  tmp.field |= 0x0008765412345678LL;
  return tmp;
  return tmp;
}
}
 
 
struct tmp2
struct tmp2
sub2 (struct tmp2 tmp2)
sub2 (struct tmp2 tmp2)
{
{
  tmp2.field |= 0x0008765412345678LL;
  tmp2.field |= 0x0008765412345678LL;
  return tmp2;
  return tmp2;
}
}
 
 
main()
main()
{
{
  struct tmp tmp = {0x123, 0xFFF000FFF000FLL};
  struct tmp tmp = {0x123, 0xFFF000FFF000FLL};
  struct tmp2 tmp2 = {0xFFF000FFF000FLL, 0x123};
  struct tmp2 tmp2 = {0xFFF000FFF000FLL, 0x123};
 
 
  tmp = sub (tmp);
  tmp = sub (tmp);
  tmp2 = sub2 (tmp2);
  tmp2 = sub2 (tmp2);
 
 
  if (tmp.pad != 0x123 || tmp.field != 0xFFFFFF541FFF567FLL)
  if (tmp.pad != 0x123 || tmp.field != 0xFFFFFF541FFF567FLL)
    abort ();
    abort ();
  if (tmp2.pad != 0x123 || tmp2.field != 0xFFFFFF541FFF567FLL)
  if (tmp2.pad != 0x123 || tmp2.field != 0xFFFFFF541FFF567FLL)
    abort ();
    abort ();
  exit (0);
  exit (0);
}
}
 
 

powered by: WebSVN 2.1.0

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