+2016-10-04 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/77399
+ * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
+ verify the target can convert.
+
2016-10-04 Richard Biener <rguenther@suse.de>
PR middle-end/77833
+2016-10-04 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/77399
+ * gcc.dg/tree-ssa/forwprop-35.c: Adjust.
+
2016-10-04 Richard Biener <rguenther@suse.de>
PR middle-end/77833
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-cddce1" } */
+/* { dg-additional-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */
typedef int v4si __attribute__((vector_size(16)));
typedef float v4sf __attribute__((vector_size(16)));
return (v4sf){f[1], f[1], f[2], f[3]};
}
-/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "cddce1" } } */
-/* { dg-final { scan-tree-dump-times "\\\(v4sf\\\) " 2 "cddce1" } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 1 "cddce1" { target { i?86-*-* x86_64-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "\\\(v4sf\\\) " 2 "cddce1" { target { i?86-*-* x86_64-*-* } } } } */
#include "builtins.h"
#include "tree-cfgcleanup.h"
#include "cfganal.h"
+#include "optabs-tree.h"
/* This pass propagates the RHS of assignment statements into use
sites of the LHS of the assignment. It's basically a specialized
!= TYPE_VECTOR_SUBPARTS (TREE_TYPE (orig))))
return false;
+ tree tem;
+ if (conv_code != ERROR_MARK
+ && (! supportable_convert_operation (conv_code, type, TREE_TYPE (orig),
+ &tem, &conv_code)
+ || conv_code == CALL_EXPR))
+ return false;
+
if (maybe_ident)
{
if (conv_code == ERROR_MARK)