URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* This testcase failed on mmix-knuth-mmixware. Problem was with storing
|
/* This testcase failed on mmix-knuth-mmixware. Problem was with storing
|
to an unaligned mem:SC, gcc tried doing it by parts from a (concat:SC
|
to an unaligned mem:SC, gcc tried doing it by parts from a (concat:SC
|
(reg:SF 293) (reg:SF 294)). */
|
(reg:SF 293) (reg:SF 294)). */
|
|
|
typedef __complex__ float cf;
|
typedef __complex__ float cf;
|
struct x { char c; cf f; } __attribute__ ((__packed__));
|
struct x { char c; cf f; } __attribute__ ((__packed__));
|
extern void f2 (struct x*);
|
extern void f2 (struct x*);
|
extern void f1 (void);
|
extern void f1 (void);
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
f1 ();
|
f1 ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
void
|
void
|
f1 (void)
|
f1 (void)
|
{
|
{
|
struct x s;
|
struct x s;
|
s.f = 1;
|
s.f = 1;
|
s.c = 42;
|
s.c = 42;
|
f2 (&s);
|
f2 (&s);
|
}
|
}
|
|
|
void
|
void
|
f2 (struct x *y)
|
f2 (struct x *y)
|
{
|
{
|
if (y->f != 1 || y->c != 42)
|
if (y->f != 1 || y->c != 42)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.