re PR rtl-optimization/26222 (build failuring in libjava)

2008-03-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/26222
        * gcc.dg/torture/pr26222.c: New testcase.

From-SVN: r133493
This commit is contained in:
Andrew Pinski 2008-03-24 23:05:31 +00:00 committed by Andrew Pinski
parent c1203a704d
commit 7837ac3cc7
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-03-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/26222
* gcc.dg/torture/pr26222.c: New testcase.
2008-03-24 Paul Thomas <pault@gcc.gnu.org> 2008-03-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/34813 PR fortran/34813

View File

@ -0,0 +1,21 @@
/* { dg-do compile } */
/* { dg-options "-fno-tree-pre -fno-tree-loop-im" } */
void putShort (int, int);
int t2;
void f(int t1)
{
int clutOffset = 52 + 256 * 3 * 2;
int x, y, z;
for (x = 0; x < 16; x++)
for (y = 0; y < 16; y++)
for (z = 0; z < 16; z++)
{
int offset = clutOffset + z * 6 + y * 16 * 6 + x * 16 * 16 * 6;
double xf = ((double) x) / ((double) 16 - 1.0);
double tt = xf;
putShort(offset, tt);
}
}