[Bug tree-optimization/81740] [6/7/8 Regression] wrong code at -O3 in both 32-bit and 64-bit modes on x86_64-linux-gnu
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 24 09:06:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81740
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Testcase modified for the testsuite:
int a[8][10] = { [2][5] = 4 }, c;
int
main ()
{
short b;
int i, d;
for (b = 4; b >= 0; b--)
for (c = 0; c <= 6; c++)
a[c + 1][b + 2] = a[c][b + 1];
for (i = 0; i < 8; i++)
for (d = 0; d < 10; d++)
if (a[i][d] != (i == 3 && d == 6) * 4)
__builtin_abort ();
return 0;
}
More information about the Gcc-bugs
mailing list