20040730-1.c: New test.
authorAndrew Pinski <apinski@apple.com>
Fri, 30 Jul 2004 22:01:59 +0000 (22:01 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 30 Jul 2004 22:01:59 +0000 (15:01 -0700)
2004-07-30  Andrew Pinski  <apinski@apple.com>

        * gcc.c-torture/compile/20040730-1.c: New test.

From-SVN: r85360

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20040730-1.c [new file with mode: 0644]

index 6941b3e043e2049034206cad404787fb700652be..f334409cd5201c0bc143a6f040fd010e63b9ddbb 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-30  Andrew Pinski  <apinski@apple.com>
+
+       * gcc.c-torture/compile/20040730-1.c: New test.
+
 2004-07-30  Aldy Hernandez  <aldyh@redhat.com>
 
        * gcc.dg/vmx/vmx.exp: Explain why we skip tests for
diff --git a/gcc/testsuite/gcc.c-torture/compile/20040730-1.c b/gcc/testsuite/gcc.c-torture/compile/20040730-1.c
new file mode 100644 (file)
index 0000000..6f224e9
--- /dev/null
@@ -0,0 +1,17 @@
+/*  PR tree-opt/16827
+    This used to ICE in tree-ssa-loop-im.c */
+
+extern unsigned short dev_roles[];
+void super_1_sync(int *rdev2)
+{
+ int i;
+ int max_dev = 0;
+
+ for (i =0;i<20;i++)
+  if (rdev2[i] > max_dev)
+   max_dev = rdev2[i];
+
+ for (i=0; i<max_dev;i++)
+  dev_roles[max_dev] = 0xfffe;
+
+}