aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-10-13 09:53:00 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-10-13 09:53:00 +0000
commit250a60f3879d2d508d0d08e9da1dfa1648e1a369 (patch)
treefc2db3da8cc97b1a2250ffa755f81ed79f7052be /gcc/combine.c
parentfb98441af9c84caef6a0e3210ace4b8ffc7e3840 (diff)
downloadgcc-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/combine.c')
-rw-r--r--gcc/combine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 4d2f79b..aa246e6 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -6304,7 +6304,8 @@ combine_simplify_rtx (rtx x, machine_mode op0_mode, int in_dest,
SUBST (XEXP (x, 1),
force_to_mode (XEXP (x, 1), GET_MODE (XEXP (x, 1)),
(HOST_WIDE_INT_1U
- << exact_log2 (GET_MODE_BITSIZE (GET_MODE (x))))
+ << exact_log2 (GET_MODE_UNIT_BITSIZE
+ (GET_MODE (x))))
- 1,
0));
break;