URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* When comparisons of bit-fields to unsigned constants got shortened,
|
/* When comparisons of bit-fields to unsigned constants got shortened,
|
the shortened signed constant was wrongly marked as overflowing,
|
the shortened signed constant was wrongly marked as overflowing,
|
leading to a later integer_zerop failure and misoptimization.
|
leading to a later integer_zerop failure and misoptimization.
|
|
|
Related to bug tree-optimization/16437 but shows the problem on
|
Related to bug tree-optimization/16437 but shows the problem on
|
32-bit systems. */
|
32-bit systems. */
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
struct s { int a:12, b:20; };
|
struct s { int a:12, b:20; };
|
|
|
struct s x = { -123, -456 };
|
struct s x = { -123, -456 };
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
if (x.a != -123U || x.b != -456U)
|
if (x.a != -123U || x.b != -456U)
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.