This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Testcase for tree-opt/16827


The fix in <http://gcc.gnu.org/ml/gcc-patches/2004-07/msg02598.html>
Fixed this testcase but since we did not have a testcase before here
is one which I committed as obvious.

Thanks,
Andrew Pinski


2004-07-30 Andrew Pinski <apinski@apple.com>


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

Index: gcc.c-torture/compile/20040730-1.c
===================================================================
RCS file: gcc.c-torture/compile/20040730-1.c
diff -N gcc.c-torture/compile/20040730-1.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc.c-torture/compile/20040730-1.c	30 Jul 2004 21:55:37 -0000
@@ -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;
+
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]