diff options
author | Alan Lawrence <alan.lawrence@arm.com> | 2014-11-13 16:35:06 +0000 |
---|---|---|
committer | Alan Lawrence <alalaw01@gcc.gnu.org> | 2014-11-13 16:35:06 +0000 |
commit | 1c4188463c7e81c3345a7d4e87eccb5b5a168c44 (patch) | |
tree | 7ade3a50e40a210abad179d58eabb4cb20bd0176 /gcc/tree-cfg.c | |
parent | cf7aa6a3b79ac25df266aa4fcfe6c059243602aa (diff) | |
download | gcc-1c4188463c7e81c3345a7d4e87eccb5b5a168c44.zip gcc-1c4188463c7e81c3345a7d4e87eccb5b5a168c44.tar.gz gcc-1c4188463c7e81c3345a7d4e87eccb5b5a168c44.tar.bz2 |
Remove VEC_RSHIFT_EXPR tree code, now unused
* fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
* tree-cfg.c (verify_gimple_assign_binary): Likewise.
* tree-inline.c (estimate_operator_cost): Likewise.
* tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
Likewise.
* tree-vect-generic.c (expand_vector_operations_1): Remove assertion
against VEC_RSHIFT_EXPR.
* optabs.h (expand_vec_shift_expr): Remove.
* optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
(expand_vec_shift_expr): Remove.
* tree.def (VEC_RSHIFT_EXPR): Remove
From-SVN: r217510
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index ee10bc6..904f2dd 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3675,38 +3675,6 @@ verify_gimple_assign_binary (gimple stmt) return false; } - case VEC_RSHIFT_EXPR: - { - if (TREE_CODE (rhs1_type) != VECTOR_TYPE - || !(INTEGRAL_TYPE_P (TREE_TYPE (rhs1_type)) - || POINTER_TYPE_P (TREE_TYPE (rhs1_type)) - || FIXED_POINT_TYPE_P (TREE_TYPE (rhs1_type)) - || SCALAR_FLOAT_TYPE_P (TREE_TYPE (rhs1_type))) - || (!INTEGRAL_TYPE_P (rhs2_type) - && (TREE_CODE (rhs2_type) != VECTOR_TYPE - || !INTEGRAL_TYPE_P (TREE_TYPE (rhs2_type)))) - || !useless_type_conversion_p (lhs_type, rhs1_type)) - { - error ("type mismatch in vector shift expression"); - debug_generic_expr (lhs_type); - debug_generic_expr (rhs1_type); - debug_generic_expr (rhs2_type); - return true; - } - /* For shifting a vector of non-integral components we - only allow shifting by a constant multiple of the element size. */ - if (!INTEGRAL_TYPE_P (TREE_TYPE (rhs1_type)) - && (TREE_CODE (rhs2) != INTEGER_CST - || !div_if_zero_remainder (rhs2, - TYPE_SIZE (TREE_TYPE (rhs1_type))))) - { - error ("non-element sized vector shift of floating point vector"); - return true; - } - - return false; - } - case WIDEN_LSHIFT_EXPR: { if (!INTEGRAL_TYPE_P (lhs_type) |