PR target/90187
* config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
a register if both if_true and if_false are MEMs.
* g++.target/i386/pr90187.C: New test.
From-SVN: r270537
2019-04-24 Jakub Jelinek <jakub@redhat.com>
+ PR target/90187
+ * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
+ a register if both if_true and if_false are MEMs.
+
PR tree-optimization/90208
* tree-cfg.c (remove_bb): Move forced labels from removed bbs
after labels of new_bb, not before them.
else
{
code = is_min ? SMIN : SMAX;
+ if (MEM_P (if_true) && MEM_P (if_false))
+ if_true = force_reg (mode, if_true);
tmp = gen_rtx_fmt_ee (code, mode, if_true, if_false);
}
+2019-04-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/90187
+ * g++.target/i386/pr90187.C: New test.
+
2019-04-24 Iain Buclaw <ibuclaw@gdcproject.org>
* gdc.test/README.gcc: New file.
--- /dev/null
+// PR target/90187
+// { dg-do compile }
+// { dg-options "-Ofast -ffloat-store" }
+
+double a[64];
+double *foo (void);
+
+void
+bar (int x, const double *y)
+{
+ int i;
+ for (i = 0; i < x; i++)
+ if (y[i] < a[i])
+ a[i] = y[i];
+}