This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24659] Conversions are not vectorized
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2007 17:47:05 -0000
- Subject: [Bug tree-optimization/24659] Conversions are not vectorized
- References: <bug-24659-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from ubizjak at gmail dot com 2007-01-06 17:47 -------
(In reply to comment #2)
> vectorization of type conversions has recently been added to autovect-branch.
> It requires modeling the respective unpack and pack optabs in the machine
> description.
Hm, there is no infrastructure for int<->float conversions.
vectorizable_operation() calls optab_for_tree_code() with "code" argument set
to FLOAT_EXPR and FIX_TRUNC_EXPR and these always return NULL.
In DFmode<->SFmode case, vectorizable_operation() calls optab_for_tree_code()
with VEC_PACK_MOD_EXPR and VEC_UNPACK_LO/HI_EXPR. At least the later case is
intended for integer modes, as optab_for_tree_code() checks for TYPE_UNSIGNED
on
"type" argument.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24659