aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-16 14:23:38 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-16 14:23:38 +0000
commitb4ddce3663ce151423f81c9e2a206df3081d1071 (patch)
tree0932d4f8ba3dd51e383d00346fdcab38cc45d073 /gcc/cse.c
parent7e594332e400b26cd2df4a40980d08ffc7fcfc1a (diff)
downloadgcc-b4ddce3663ce151423f81c9e2a206df3081d1071.zip
gcc-b4ddce3663ce151423f81c9e2a206df3081d1071.tar.gz
gcc-b4ddce3663ce151423f81c9e2a206df3081d1071.tar.bz2
Revert accidental commit
From-SVN: r255746
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index d6e3e7e..c0db32b 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -3611,9 +3611,9 @@ fold_rtx (rtx x, rtx_insn *insn)
|| INTVAL (const_arg1) < 0))
{
if (SHIFT_COUNT_TRUNCATED)
- canon_const_arg1 = gen_int_shift_amount
- (mode, (INTVAL (const_arg1)
- & (GET_MODE_UNIT_BITSIZE (mode) - 1)));
+ canon_const_arg1 = GEN_INT (INTVAL (const_arg1)
+ & (GET_MODE_UNIT_BITSIZE (mode)
+ - 1));
else
break;
}
@@ -3660,9 +3660,9 @@ fold_rtx (rtx x, rtx_insn *insn)
|| INTVAL (inner_const) < 0))
{
if (SHIFT_COUNT_TRUNCATED)
- inner_const = gen_int_shift_amount
- (mode, (INTVAL (inner_const)
- & (GET_MODE_UNIT_BITSIZE (mode) - 1)));
+ inner_const = GEN_INT (INTVAL (inner_const)
+ & (GET_MODE_UNIT_BITSIZE (mode)
+ - 1));
else
break;
}
@@ -3692,8 +3692,7 @@ fold_rtx (rtx x, rtx_insn *insn)
/* As an exception, we can turn an ASHIFTRT of this
form into a shift of the number of bits - 1. */
if (code == ASHIFTRT)
- new_const = gen_int_shift_amount
- (mode, GET_MODE_UNIT_BITSIZE (mode) - 1);
+ new_const = GEN_INT (GET_MODE_UNIT_BITSIZE (mode) - 1);
else if (!side_effects_p (XEXP (y, 0)))
return CONST0_RTX (mode);
else