+2013-12-23 Bingfeng Mei <bmei@broadcom.com>
+
+ PR middle-end/59569
+ * tree-vect-stmts.c (vectorizable_store): Skip permutation for
+ consant/external operand, and add a few missing \n.
+
2013-12-23 H.J. Lu <hongjiu.lu@intel.com>
Tocar Ilya <ilya.tocar@intel.com>
+2013-12-23 Bingfeng Mei <bmei@broadcom.com>
+
+ PR middle-end/59569
+ * gcc.c-torture/compile/pr59569-1.c: New test.
+ * gcc.c-torture/compile/pr59569-2.c: Ditto.
+
2013-12-23 Marek Polacek <polacek@redhat.com>
PR c++/59111
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
- "multiple types with negative step.");
+ "multiple types with negative step.\n");
return false;
}
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
- "negative step but alignment required.");
+ "negative step but alignment required.\n");
return false;
}
- if (!perm_mask_for_reverse (vectype))
+ if (dt != vect_constant_def
+ && dt != vect_external_def
+ && !perm_mask_for_reverse (vectype))
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
- "negative step and reversing not supported.");
+ "negative step and reversing not supported.\n");
return false;
}
}
set_ptr_info_alignment (get_ptr_info (dataref_ptr), align,
misalign);
- if (negative)
+ if (negative
+ && dt != vect_constant_def
+ && dt != vect_external_def)
{
tree perm_mask = perm_mask_for_reverse (vectype);
tree perm_dest