re PR rtl-optimization/83771 (ICE: verify_flow_info failed (error: non-cold basic...
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Jan 2018 11:04:11 +0000 (12:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Jan 2018 11:04:11 +0000 (12:04 +0100)
PR rtl-optimization/83771
* gcc.dg/pr83771.c: New test.

From-SVN: r256781

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83771.c [new file with mode: 0644]

index 448b44a..9449d5e 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-17  Jakub Jelinek  <jakub@redhat.com>
+
+       PR rtl-optimization/83771
+       * gcc.dg/pr83771.c: New test.
+
 2018-01-17  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR tree-optimization/81184
diff --git a/gcc/testsuite/gcc.dg/pr83771.c b/gcc/testsuite/gcc.dg/pr83771.c
new file mode 100644 (file)
index 0000000..a5a386e
--- /dev/null
@@ -0,0 +1,19 @@
+/* PR rtl-optimization/83771 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -fmodulo-sched -fno-ssa-phiopt" } */
+
+long int a;
+int b;
+int foo (int);
+
+void
+bar (void)
+{
+  int c;
+  do
+    {
+      c = a / (!!b == 1);
+      c = !!c + 1;
+    }
+  while (foo (c) < 1);
+}