cse.c (find_comparison_args): Use val_mode_signbit_set_p.
authorBernd Schmidt <bernds@codesourcery.com>
Wed, 6 Jul 2011 14:21:03 +0000 (14:21 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 6 Jul 2011 14:21:03 +0000 (14:21 +0000)
commit2d0c270fd266218ff040965bb8231729df9144f1
tree2a2d891d415bcfdd26b794dc666ecd03b7565eee
parent6d6c952527c53637280297b2e6a48d6b21606294
cse.c (find_comparison_args): Use val_mode_signbit_set_p.

* cse.c (find_comparison_args): Use val_mode_signbit_set_p.
* simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
(val_mode_signbit_p, val_mode_signbit_set_p): New functions.
(simplify_const_unary_operation, simplify_binary_operation_1,
simplify_const_binary_operation,
simplify_const_relational_operation): Use them.  Use
GET_MODE_MASK for masking and sign-extensions.
* combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
simplify_shift_const_1, simplify_comparison): Likewise.
* expr.c (convert_modes): Likewise.
* rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
* expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
Likewise.
* rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.

From-SVN: r175917
gcc/ChangeLog
gcc/combine.c
gcc/cse.c
gcc/expmed.c
gcc/expr.c
gcc/rtl.h
gcc/rtlanal.c
gcc/simplify-rtx.c