diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-10-13 09:53:00 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-10-13 09:53:00 +0000 |
commit | 250a60f3879d2d508d0d08e9da1dfa1648e1a369 (patch) | |
tree | fc2db3da8cc97b1a2250ffa755f81ed79f7052be /gcc/targhooks.c | |
parent | fb98441af9c84caef6a0e3210ace4b8ffc7e3840 (diff) | |
download | gcc-250a60f3879d2d508d0d08e9da1dfa1648e1a369.zip gcc-250a60f3879d2d508d0d08e9da1dfa1648e1a369.tar.gz gcc-250a60f3879d2d508d0d08e9da1dfa1648e1a369.tar.bz2 |
Make more use of GET_MODE_UNIT_BITSIZE
This patch is like the previous GET_MODE_UNIT_SIZE one,
but for bit rather than byte sizes.
2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_BITSIZE.
(expand_debug_source_expr): Likewise.
* combine.c (combine_simplify_rtx): Likewise.
* cse.c (fold_rtx): Likewise.
* fwprop.c (canonicalize_address): Likewise.
* targhooks.c (default_shift_truncation_mask): Likewise.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253716
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r-- | gcc/targhooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 8dbf8a1..ae25951 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -245,7 +245,7 @@ default_unwind_word_mode (void) unsigned HOST_WIDE_INT default_shift_truncation_mask (machine_mode mode) { - return SHIFT_COUNT_TRUNCATED ? GET_MODE_BITSIZE (mode) - 1 : 0; + return SHIFT_COUNT_TRUNCATED ? GET_MODE_UNIT_BITSIZE (mode) - 1 : 0; } /* The default implementation of TARGET_MIN_DIVISIONS_FOR_RECIP_MUL. */ |