diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-07-06 23:12:45 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-07-06 23:12:45 +0000 |
commit | 46c9550f314d1eb1767d9636afda497a1cbd0797 (patch) | |
tree | 404fbb53e667f21f4be95e942ca6c31b0c8268e5 /gcc/machmode.h | |
parent | 6a4bdc797621dbf63470b88dcd50095571b0fe1d (diff) | |
download | gcc-46c9550f314d1eb1767d9636afda497a1cbd0797.tar.gz |
machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
* machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
* combine.c (set_nonzero_bits_and_sign_copies): Use it.
(find_split-point, combine_simplify_rtx, simplify_if_then_else,
simplify_set, simplify_logical, expand_compound_operation,
make_extraction, force_to_mode, if_then_else_cond, extended_count,
try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
record_value_for_reg): Likewise.
* expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
* simplify-rtx. c (simplify_unary_operation_1,
simplify_binary_operation_1, simplify_const_relational_operation):
Likewise.
From-SVN: r175945
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 30d1a8ccb38..f979b95ea0b 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -279,4 +279,8 @@ extern void init_adjust_machine_modes (void); TRULY_NOOP_TRUNCATION (GET_MODE_PRECISION (MODE1), \ GET_MODE_PRECISION (MODE2)) +#define HWI_COMPUTABLE_MODE_P(MODE) \ + (SCALAR_INT_MODE_P (MODE) \ + && GET_MODE_PRECISION (MODE) <= HOST_BITS_PER_WIDE_INT) + #endif /* not HAVE_MACHINE_MODES */ |