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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr20054.c] - Rev 689

Compare with Previous | Blame | View Log

 
/* { dg-do compile } */
/* { dg-options "-O2 -fno-strict-aliasing" } */
 
 
unsigned int *foo (void);
 
char *
bar (double *d)
{
  return (char *) (d + 1) - sizeof (unsigned int);
}
 
char
baz (double x)
{
  unsigned int h = *foo ();
  unsigned int l = *(unsigned int *) bar (&x);
 
  return (h & ~0x80000000L) == 0x7FF00000 && l == 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.