URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 384 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
void abort (void);
|
void abort (void);
|
|
|
struct S2848
|
struct S2848
|
{
|
{
|
unsigned int a;
|
unsigned int a;
|
_Complex int b;
|
_Complex int b;
|
};
|
};
|
|
|
struct S2848 s2848;
|
struct S2848 s2848;
|
|
|
void __attribute__((noinline))
|
void __attribute__((noinline))
|
check2848 (struct S2848 arg0)
|
check2848 (struct S2848 arg0)
|
{
|
{
|
if (arg0.b != s2848.b)
|
if (arg0.b != s2848.b)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
int main()
|
int main()
|
{
|
{
|
s2848.a = 4027477739U;
|
s2848.a = 4027477739U;
|
s2848.b = (723419448 + -218144346 * __extension__ 1i);
|
s2848.b = (723419448 + -218144346 * __extension__ 1i);
|
|
|
check2848 (s2848);
|
check2848 (s2848);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.