This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70138] [6 Regression] wrong code at -O3 on x86_64-linux-gnu
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Mar 2016 11:50:29 +0000
- Subject: [Bug tree-optimization/70138] [6 Regression] wrong code at -O3 on x86_64-linux-gnu
- Auto-submitted: auto-generated
- References: <bug-70138-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70138
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Slightly cleaned up testcase from creduce mess:
double u[1782225];
static void
foo (int *x)
{
double c = 0.0;
int a, b;
for (a = 0; a < 1335; a++)
{
for (b = 0; b < 1335; b++)
c = c + u[1336 * a];
u[1336 * a] *= 2.0;
}
*x = c;
}
int
main ()
{
int d, e;
for (d = 0; d < 1782225; d++)
u[d] = 2.0;
foo (&e);
if (e != 3564450)
__builtin_abort ();
return 0;
}