PR rtl-optimization/83771
* gcc.dg/pr83771.c: New test.
From-SVN: r256781
+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
--- /dev/null
+/* 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);
+}