URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 */
|
/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 */
|
|
|
/* SRA failed to canonicalize bit-field types, introducing type
|
/* SRA failed to canonicalize bit-field types, introducing type
|
mismatches. */
|
mismatches. */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
struct A
|
struct A
|
{
|
{
|
int a:16;
|
int a:16;
|
/* These dummy bit-fields are here to prevent GCC 4.2+ from merging
|
/* These dummy bit-fields are here to prevent GCC 4.2+ from merging
|
the bit-field compares into a single word compare, which disables
|
the bit-field compares into a single word compare, which disables
|
SRA. */
|
SRA. */
|
int a2:16;
|
int a2:16;
|
int a3:16;
|
int a3:16;
|
int a4:16;
|
int a4:16;
|
int b:8;
|
int b:8;
|
bool operator==(A const x) const
|
bool operator==(A const x) const
|
{
|
{
|
return (this->a == x.a && this->b == x.b);
|
return (this->a == x.a && this->b == x.b);
|
}
|
}
|
};
|
};
|
|
|
bool
|
bool
|
foo (A const x, A const y)
|
foo (A const x, A const y)
|
{
|
{
|
return x == y;
|
return x == y;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.