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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20090107-1.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 688 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.