+2005-09-28 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/23853
+ * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
+ host_integerp to verify misalignment value.
+
2005-09-28 Richard Henderson <rth@redhat.com>
* builtins.c (get_builtin_sync_mode): New.
/* Modulo alignment. */
misalign = size_binop (TRUNC_MOD_EXPR, misalign, alignment);
- if (tree_int_cst_sgn (misalign) < 0)
+ if (!host_integerp (misalign, 1))
{
- /* Negative misalignment value. */
+ /* Negative or overflowed misalignment value. */
if (vect_print_dump_info (REPORT_DETAILS))
fprintf (vect_dump, "unexpected misalign value");
return false;
}
- DR_MISALIGNMENT (dr) = tree_low_cst (misalign, 1);
+ DR_MISALIGNMENT (dr) = TREE_INT_CST_LOW (misalign);
if (vect_print_dump_info (REPORT_DETAILS))
{