URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* This caused cc1 to segfault on s390x-ibm-linux
|
/* This caused cc1 to segfault on s390x-ibm-linux
|
due to a bug in if_then_else_cond (combine.c). */
|
due to a bug in if_then_else_cond (combine.c). */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1" } */
|
/* { dg-options "-O1" } */
|
|
|
extern void use (unsigned int x);
|
extern void use (unsigned int x);
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
union
|
union
|
{
|
{
|
unsigned int x;
|
unsigned int x;
|
unsigned long pad;
|
unsigned long pad;
|
} A;
|
} A;
|
|
|
struct
|
struct
|
{
|
{
|
unsigned int x : 1;
|
unsigned int x : 1;
|
} B;
|
} B;
|
|
|
A.x = 1;
|
A.x = 1;
|
B.x = 1;
|
B.x = 1;
|
A.x /= B.x;
|
A.x /= B.x;
|
use (A.x);
|
use (A.x);
|
|
|
A.x = 1;
|
A.x = 1;
|
B.x = 1;
|
B.x = 1;
|
B.x /= A.x;
|
B.x /= A.x;
|
use (B.x);
|
use (B.x);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.