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] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* Verify that we don't ICE by forming invalid addresses for unaligned
2
   doubleword loads (originally for PPC64).  */
3
 
4
struct a
5
{
6
 unsigned int x;
7
 unsigned short y;
8
} __attribute__((packed));
9
 
10
struct b {
11
 struct a rep;
12
 unsigned long long seq;
13
} __attribute__((packed));
14
 
15
struct c {
16
 int x;
17
 struct a a[5460];
18
 struct b b;
19
};
20
 
21
extern void use_ull(unsigned long long);
22
extern void f(struct c *i) {
23
  use_ull(i->b.seq);
24
  return;
25
}

powered by: WebSVN 2.1.0

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