re PR tree-optimization/66726 (missed optimization, factor conversion out of COND_EXPR)
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Dec 2015 21:05:51 +0000 (22:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Dec 2015 21:05:51 +0000 (22:05 +0100)
PR middle-end/66726
* g++.dg/tree-ssa/pr66726.c: Renamed to...
* g++.dg/tree-ssa/pr66726.C: ... this.

From-SVN: r231384

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr66726.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tree-ssa/pr66726.c [deleted file]

index 9361cee8a70f7d32b4c64b3a9537d7ad08ded259..48cc7aebfaed082674f713ebca456042562d67b0 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/66726
+       * g++.dg/tree-ssa/pr66726.c: Renamed to...
+       * g++.dg/tree-ssa/pr66726.C: ... this.
+
 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
 
        * gcc.target/mips/wrap-delay.c: New test.
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr66726.C b/gcc/testsuite/g++.dg/tree-ssa/pr66726.C
new file mode 100644 (file)
index 0000000..fb103cd
--- /dev/null
@@ -0,0 +1,35 @@
+/* { dg-do run } */
+/* { dg-options "-O2" } */
+
+/* Execution test for converting VIEW_CONVERT_EXPR.  */
+
+struct cpp_num {
+  bool f;
+};
+
+extern cpp_num  __attribute__((noinline))
+foo (cpp_num lhs,
+     cpp_num rhs)
+{
+  lhs.f = lhs.f || rhs.f;
+  return lhs;
+}
+
+cpp_num lhs, rhs, r;
+
+int main ()
+{
+
+  lhs.f = false;
+  rhs.f = false;
+  r = foo (lhs, rhs);
+  if (r.f)
+    __builtin_abort ();
+
+
+  lhs.f = false;
+  rhs.f = true;
+  r = foo (lhs, rhs);
+  if (!r.f)
+    __builtin_abort ();
+}
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr66726.c b/gcc/testsuite/g++.dg/tree-ssa/pr66726.c
deleted file mode 100644 (file)
index 9b3bd8f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-
-/* { dg-do run } */
-/* { dg-options "-O2" } */
-
-/* Execution test for converting VIEW_CONVERT_EXPR.  */
-
-struct cpp_num {
-  bool f;
-};
-
-extern cpp_num  __attribute__((noinline))
-foo (cpp_num lhs,
-     cpp_num rhs)
-{
-  lhs.f = lhs.f || rhs.f;
-  return lhs;
-}
-
-cpp_num lhs, rhs, r;
-
-int main ()
-{
-
-  lhs.f = false;
-  rhs.f = false;
-  r = foo (lhs, rhs);
-  if (r.f)
-    __builtin_abort ();
-
-
-  lhs.f = false;
-  rhs.f = true;
-  r = foo (lhs, rhs);
-  if (!r.f)
-    __builtin_abort ();
-}