Mercurial > hg > CbC > CbC_gcc
diff gcc/tree-vect-generic.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | 58ad6c70ea60 |
children | b7f97abdc517 |
line wrap: on
line diff
--- a/gcc/tree-vect-generic.c Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/tree-vect-generic.c Fri Feb 12 23:39:51 2010 +0900 @@ -1,18 +1,19 @@ /* Lower vector operations to scalar operations. - Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. This file is part of GCC. - + GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. - + GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ @@ -416,12 +417,12 @@ if (TREE_CODE (type) != VECTOR_TYPE) return; - if (code == NOP_EXPR + if (code == NOP_EXPR || code == FLOAT_EXPR || code == FIX_TRUNC_EXPR || code == VIEW_CONVERT_EXPR) return; - + gcc_assert (code != CONVERT_EXPR); /* The signedness is determined from input argument. */ @@ -431,8 +432,8 @@ /* Choose between vector shift/rotate by vector and vector shift/rotate by scalar */ - if (code == LSHIFT_EXPR - || code == RSHIFT_EXPR + if (code == LSHIFT_EXPR + || code == RSHIFT_EXPR || code == LROTATE_EXPR || code == RROTATE_EXPR) { @@ -453,7 +454,7 @@ else op = optab_for_tree_code (code, type, optab_default); - /* For widening/narrowing vector operations, the relevant type is of the + /* For widening/narrowing vector operations, the relevant type is of the arguments, not the widened result. VEC_UNPACK_FLOAT_*_EXPR is calculated in the same way above. */ if (code == WIDEN_SUM_EXPR @@ -547,7 +548,7 @@ return 0; } -struct gimple_opt_pass pass_lower_vector = +struct gimple_opt_pass pass_lower_vector = { { GIMPLE_PASS, @@ -557,7 +558,7 @@ NULL, /* sub */ NULL, /* next */ 0, /* static_pass_number */ - 0, /* tv_id */ + TV_NONE, /* tv_id */ PROP_cfg, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ @@ -567,7 +568,7 @@ } }; -struct gimple_opt_pass pass_lower_vector_ssa = +struct gimple_opt_pass pass_lower_vector_ssa = { { GIMPLE_PASS, @@ -577,7 +578,7 @@ NULL, /* sub */ NULL, /* next */ 0, /* static_pass_number */ - 0, /* tv_id */ + TV_NONE, /* tv_id */ PROP_cfg, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */