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

Subversion Repositories openrisc

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

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR middle-end/44843 */
/* Verify that we don't use the alignment of struct S for inner accesses.  */
 
struct S
{
  double for_alignment;
  struct { int x, y, z; } a[16];
};
 
void f(struct S *s) __attribute__((noinline));
 
void f(struct S *s)
{
  unsigned int i;
 
  for (i = 0; i < 16; ++i)
    {
      s->a[i].x = 0;
      s->a[i].y = 0;
      s->a[i].z = 0;
    }
}
 
int main (void)
{
  struct S s;
  f (&s);
  return 0;
}
 

Go to most recent revision | 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.