aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2008-03-24 23:05:31 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2008-03-24 16:05:31 -0700
commit7837ac3cc7481f80685feb00bb7ac0d063fd9da6 (patch)
treef67f0d2e8605097665c482dd633c454d8d449fec /gcc
parentc1203a704d375608c84ec0f1f4af250025374e85 (diff)
downloadgcc-7837ac3cc7481f80685feb00bb7ac0d063fd9da6.zip
gcc-7837ac3cc7481f80685feb00bb7ac0d063fd9da6.tar.gz
gcc-7837ac3cc7481f80685feb00bb7ac0d063fd9da6.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr26222.c21
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4ce37ec..942600c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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>
PR fortran/34813
diff --git a/gcc/testsuite/gcc.dg/torture/pr26222.c b/gcc/testsuite/gcc.dg/torture/pr26222.c
new file mode 100644
index 0000000..b580db6
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr26222.c
@@ -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);
+ }
+}
+