URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.