Commit e4ca3dc3 by Richard Henderson Committed by Richard Henderson

re PR target/17962 (small fp vector uses sse/mmx vectors and is not aligned)

        PR 17962
        * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.

From-SVN: r89284
parent e5fa845c
2004-10-19 Richard Hendeson <rth@redhat.com> 2004-10-19 Richard Hendeson <rth@redhat.com>
PR 17962
* stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
2004-10-19 Richard Hendeson <rth@redhat.com>
* builtins.c (expand_builtin_memmove): If fold_builtin_memmove * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
succeeds, only expand the result. succeeds, only expand the result.
......
...@@ -1576,6 +1576,10 @@ layout_type (tree type) ...@@ -1576,6 +1576,10 @@ layout_type (tree type)
nunits_tree, 0); nunits_tree, 0);
TYPE_SIZE (type) = int_const_binop (MULT_EXPR, TYPE_SIZE (innertype), TYPE_SIZE (type) = int_const_binop (MULT_EXPR, TYPE_SIZE (innertype),
nunits_tree, 0); nunits_tree, 0);
/* Always natually align vectors. This prevents ABI changes
depending on whether or not native vector modes are supported. */
TYPE_ALIGN (type) = tree_low_cst (TYPE_SIZE (type), 0);
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment