2015-11-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/68248
* tree-vect-generic.c (expand_vector_operations_1): Handle
scalar rhs2.
* gcc.dg/torture/pr68248.c: New testcase.
From-SVN: r230021
+2015-11-09 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/68248
+ * tree-vect-generic.c (expand_vector_operations_1): Handle
+ scalar rhs2.
+
2015-11-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/56118
+2015-11-09 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/68248
+ * gcc.dg/torture/pr68248.c: New testcase.
+
2015-11-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/56118
--- /dev/null
+/* { dg-do compile } */
+
+int a, b, c, d;
+
+int
+fn1 (int p1)
+{
+ return a > 0 ? p1 : p1 >> a;
+}
+
+void
+fn2 ()
+{
+ char e;
+ for (; c; c++)
+ {
+ e = fn1 (!d ^ 2);
+ b ^= e;
+ }
+}
tree srhs1, srhs2 = NULL_TREE;
if ((srhs1 = ssa_uniform_vector_p (rhs1)) != NULL_TREE
&& (rhs2 == NULL_TREE
+ || (! VECTOR_TYPE_P (TREE_TYPE (rhs2))
+ && (srhs2 = rhs2))
|| (srhs2 = ssa_uniform_vector_p (rhs2)) != NULL_TREE)
/* As we query direct optabs restrict to non-convert operations. */
&& TYPE_MODE (TREE_TYPE (type)) == TYPE_MODE (TREE_TYPE (srhs1)))