OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20090107-1.c] - Diff between revs 297 and 338

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

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

powered by: WebSVN 2.1.0

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