re PR tree-optimization/34223 (missed optimization - complete unrolling pass before...
authorRichard Guenther <rguenther@suse.de>
Mon, 28 Apr 2008 09:22:28 +0000 (09:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Apr 2008 09:22:28 +0000 (09:22 +0000)
2008-04-28  Richard Guenther  <rguenther@suse.de>

        PR testsuite/34223
        * gcc.dg/vect/vect-118.c: Rename to ...
        * gcc.dg/vect/O3-vect-pr34223.c: ... this.

From-SVN: r134747

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/O3-vect-pr34223.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-118.c [deleted file]

index 78d868bd0e25926beeb2c760dde7fdb0230c8e50..c15f9739ac66ddaff065153a7e763b620d3c8020 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-28  Richard Guenther  <rguenther@suse.de>
+
+       PR testsuite/34223
+       * gcc.dg/vect/vect-118.c: Rename to ...
+       * gcc.dg/vect/O3-vect-pr34223.c: ... this.
+
 2008-04-28  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/36066
diff --git a/gcc/testsuite/gcc.dg/vect/O3-vect-pr34223.c b/gcc/testsuite/gcc.dg/vect/O3-vect-pr34223.c
new file mode 100644 (file)
index 0000000..22ce72c
--- /dev/null
@@ -0,0 +1,33 @@
+/* { dg-require-effective-target vect_int } */
+
+#include "tree-vect.h"
+
+#define M 10
+#define N 3
+
+void __attribute__((noinline))
+foo (int n, int *ub, int *uc)
+{
+  int i, j, tmp1;
+
+  for (i = 0; i < n; i++)
+    {
+      tmp1 = 0;
+      for (j = 0; j < M; j++)
+        {
+          tmp1 += uc[i] * ((int)(j << N) / M);
+        }
+      ub[i] = tmp1;
+    }
+}
+
+int main()
+{
+  int uc[16], ub[16];
+  check_vect ();
+  foo (16, uc, ub);
+  return 0;
+}
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
diff --git a/gcc/testsuite/gcc.dg/vect/vect-118.c b/gcc/testsuite/gcc.dg/vect/vect-118.c
deleted file mode 100644 (file)
index 6c0268c..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/* { dg-require-effective-target vect_int } */
-/* { dg-options "-O3 -fdump-tree-vect-details" } */
-
-#include "tree-vect.h"
-
-#define M 10
-#define N 3
-
-void __attribute__((noinline))
-foo (int n, int *ub, int *uc)
-{
-  int i, j, tmp1;
-
-  for (i = 0; i < n; i++)
-    {
-      tmp1 = 0;
-      for (j = 0; j < M; j++)
-        {
-          tmp1 += uc[i] * ((int)(j << N) / M);
-        }
-      ub[i] = tmp1;
-    }
-}
-
-int main()
-{
-  int uc[16], ub[16];
-  check_vect ();
-  foo (16, uc, ub);
-  return 0;
-}
-
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
-/* { dg-final { cleanup-tree-dump "vect" } } */