PR rtl-optimization/81595
* gcc.c-torture/compile/pr81595.c: New test.
From-SVN: r255516
+2017-12-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR rtl-optimization/81595
+ * gcc.c-torture/compile/pr81595.c: New test.
+
2017-12-08 Michael Matz <matz@suse.de>
Fix PR tree-optimization/83323
--- /dev/null
+/* PR rtl-optimization/81595 */
+
+void
+foo (__INTPTR_TYPE__ *x, int *y, int *z, int u, int v)
+{
+ while (u != 0)
+ {
+ if (*x != 0)
+ {
+ int a = 1;
+ l1:
+ if (*y != 0)
+ {
+ while (a < 2)
+ {
+ a = 0;
+ x = (__INTPTR_TYPE__ *)&x;
+ l2:
+ ++a;
+ }
+ while (*z != 0)
+ ;
+ }
+ a /= 0;
+ }
+ else
+ {
+ *z /= (*z != 0) ? 2 : 0;
+ while (v < 1)
+ {
+ *y = 0;
+ if (v != 0)
+ goto l1;
+ ++v;
+ }
+ goto l2;
+ }
+ }
+}