aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-07-06 23:16:39 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-07-06 23:16:39 +0000
commit5511bc5ada2bd2bc9ab835d0ed9fd96a83d3260d (patch)
tree27c66cbb7f764ab1e0fc7b9262c11b806127fde0 /gcc/explow.c
parent46c9550f314d1eb1767d9636afda497a1cbd0797 (diff)
downloadgcc-5511bc5ada2bd2bc9ab835d0ed9fd96a83d3260d.zip
gcc-5511bc5ada2bd2bc9ab835d0ed9fd96a83d3260d.tar.gz
gcc-5511bc5ada2bd2bc9ab835d0ed9fd96a83d3260d.tar.bz2
explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate.
* explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where appropriate. * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1, num_sign_bit_copies1, canonicalize_condition, low_bitmask_len, init_num_sign_bit_copies_in_rep): Likewise. * cse.c (fold_rtx, cse_insn): Likewise. * loop-doloop.c (doloop_modify, doloop_optimize): Likewise. * simplify-rtx.c (simplify_unary_operation_1, simplify_const_unary_operation, simplify_binary_operation_1, simplify_const_binary_operation, simplify_ternary_operation, simplify_const_relational_operation, simplify_subreg): Likewise. * combine.c (try_combine, find_split_point, combine_simplify_rtx, simplify_if_then_else, simplify_set, expand_compound_operation, expand_field_assignment, make_extraction, if_then_else_cond, make_compound_operation, force_to_mode, make_field_assignment, reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine, extended_count, try_widen_shift_mode, simplify_shift_const_1, simplify_comparison, record_promoted_value, simplify_compare_const, record_dead_and_set_regs_1): Likewise. From-SVN: r175946
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index a042273..3c692f40 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -51,7 +51,7 @@ static rtx break_out_memory_refs (rtx);
HOST_WIDE_INT
trunc_int_for_mode (HOST_WIDE_INT c, enum machine_mode mode)
{
- int width = GET_MODE_BITSIZE (mode);
+ int width = GET_MODE_PRECISION (mode);
/* You want to truncate to a _what_? */
gcc_assert (SCALAR_INT_MODE_P (mode));