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/] [compile/] [20090107-1.c] - Rev 859

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

/* Verify that we don't ICE by forming invalid addresses for unaligned
   doubleword loads (originally for PPC64).  */
 
struct a
{
 unsigned int x;
 unsigned short y;
} __attribute__((packed));
 
struct b {
 struct a rep;
 unsigned long long seq;
} __attribute__((packed));
 
struct c {
 int x;
 struct a a[5460];
 struct b b;
};
 
extern void use_ull(unsigned long long);
extern void f(struct c *i) {
  use_ull(i->b.seq);
  return;
}
 

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.