diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-04-22 20:45:06 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-04-22 20:45:06 +0200 |
commit | 8115817bf28fd13c0f1c1359f8035f3e4cdb41d2 (patch) | |
tree | ed5f0d41e31a2f26e2f1a5a6ffcee8f2131348a4 /gcc/optabs.h | |
parent | 395a40e0e28129430ca707dad8475fefad3d8782 (diff) | |
download | gcc-8115817bf28fd13c0f1c1359f8035f3e4cdb41d2.zip gcc-8115817bf28fd13c0f1c1359f8035f3e4cdb41d2.tar.gz gcc-8115817bf28fd13c0f1c1359f8035f3e4cdb41d2.tar.bz2 |
re PR tree-optimization/24659 (Conversions are not vectorized)
2007-04-22 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/24659
* optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
(vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
* genopinit.c (optabs): Rename vec_pack_mod_optab
to vec_pack_trunc_optab.
* tree-vect-transform.c (vectorizable_type_demotion): Do not fail
early for scalar floating point operands for NOP_EXPR.
(vectorizable_type_promotion): Ditto.
* optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
vec_pack_trunc_optab.
(expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
* tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
* tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
Rename from VEC_PACK_MOD_EXPR.
(op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
* expr.c (expand_expr_real_1): Ditto.
* tree-inline.c (estimate_num_insns_1): Ditto.
* tree-vect-generic.c (expand_vector_operations_1): Ditto.
* config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
(vec_unpacks_lo_v4sf): Ditto.
(vec_pack_trunc_v2df): Ditto.
(vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
(vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
(vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
* config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
vec_pack_mod_v8hi.
(vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
* doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
Rename from VEC_PACK_MOD_EXPR. This expression also represent
packing of floating point operands.
[VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
represent unpacking of floating point operands.
* doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
[vec_unpacks_hi]: Ditto.
[vec_unpacks_lo]: Ditto.
testsuite/ChangeLog:
2007-04-22 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/24659
* gcc.dg/vect/vect-float-extend-1.c: New test.
* gcc.dg/vect/vect-float-truncate-1.c: New test.
From-SVN: r124045
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r-- | gcc/optabs.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index 0f8c796..62a69c7 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -278,14 +278,16 @@ enum optab_index OTI_vec_widen_umult_lo, OTI_vec_widen_smult_hi, OTI_vec_widen_smult_lo, - /* Extract and widen the high/low part of a vector of signed/unsigned - elements. */ + /* Extract and widen the high/low part of a vector of signed or + floating point elements. */ OTI_vec_unpacks_hi, OTI_vec_unpacks_lo, + /* Extract and widen the high/low part of a vector of unsigned + elements. */ OTI_vec_unpacku_hi, OTI_vec_unpacku_lo, /* Narrow (demote) and merge the elements of two vectors. */ - OTI_vec_pack_mod, + OTI_vec_pack_trunc, OTI_vec_pack_usat, OTI_vec_pack_ssat, @@ -404,7 +406,7 @@ extern GTY(()) optab optab_table[OTI_MAX]; #define reduc_umin_optab (optab_table[OTI_reduc_umin]) #define reduc_splus_optab (optab_table[OTI_reduc_splus]) #define reduc_uplus_optab (optab_table[OTI_reduc_uplus]) - + #define ssum_widen_optab (optab_table[OTI_ssum_widen]) #define usum_widen_optab (optab_table[OTI_usum_widen]) #define sdot_prod_optab (optab_table[OTI_sdot_prod]) @@ -425,13 +427,13 @@ extern GTY(()) optab optab_table[OTI_MAX]; #define vec_widen_smult_hi_optab (optab_table[OTI_vec_widen_smult_hi]) #define vec_widen_smult_lo_optab (optab_table[OTI_vec_widen_smult_lo]) #define vec_unpacks_hi_optab (optab_table[OTI_vec_unpacks_hi]) -#define vec_unpacku_hi_optab (optab_table[OTI_vec_unpacku_hi]) #define vec_unpacks_lo_optab (optab_table[OTI_vec_unpacks_lo]) +#define vec_unpacku_hi_optab (optab_table[OTI_vec_unpacku_hi]) #define vec_unpacku_lo_optab (optab_table[OTI_vec_unpacku_lo]) -#define vec_pack_mod_optab (optab_table[OTI_vec_pack_mod]) +#define vec_pack_trunc_optab (optab_table[OTI_vec_pack_trunc]) #define vec_pack_ssat_optab (optab_table[OTI_vec_pack_ssat]) #define vec_pack_usat_optab (optab_table[OTI_vec_pack_usat]) - + #define powi_optab (optab_table[OTI_powi]) /* Conversion optabs have their own table and indexes. */ |