summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-06 12:12:32 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-06 12:12:32 +0000
commitbb6c9541e9d3949965c0c89074754a14a8823983 (patch)
treede9849634b1b7fa1d9a2c6099d590044f0aa8c3a /gcc/optabs.c
parentb852d3a09892a4681d07a34043d674621f2080f0 (diff)
downloadgcc-bb6c9541e9d3949965c0c89074754a14a8823983.tar.gz
PR tree-optimization/32216
* tree-vectorizer.c (supportable_widening_operation): Determine signedness of FIX_TRUNC_EXPR from output operand. (supportable_narrowing_operation): Ditto. * tree-vect-generic.c (expand_vector_operations_1): Determine signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR from input operand. testsuite/ChangeLog: PR tree-optimization/32216 * gcc.dg/vect/pr32216.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125482 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index d659132c1e9..47114fcaa5c 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -357,6 +357,7 @@ optab_for_tree_code (enum tree_code code, tree type)
return TYPE_UNSIGNED (type) ? vec_pack_usat_optab : vec_pack_ssat_optab;
case VEC_PACK_FIX_TRUNC_EXPR:
+ /* The signedness is determined from output operand. */
return TYPE_UNSIGNED (type) ?
vec_pack_ufix_trunc_optab : vec_pack_sfix_trunc_optab;