Commit 166cdf4a by Richard Henderson Committed by Richard Henderson

* expmed.c (expand_shift): If SHIFT_COUNT_TRUNCATED, drop a SUBREG.

From-SVN: r17107
parent bcbbac26
Mon Dec 15 18:40:08 1997 Richard Henderson <rth@cygnus.com>
* expmed.c (expand_shift): If SHIFT_COUNT_TRUNCATED, drop a SUBREG.
Mon Dec 15 18:31:43 1997 Richard Henderson <rth@cygnus.com> Mon Dec 15 18:31:43 1997 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_cpu_name): New variable. * alpha.c (alpha_cpu_name): New variable.
......
...@@ -1752,11 +1752,16 @@ expand_shift (code, mode, shifted, amount, target, unsignedp) ...@@ -1752,11 +1752,16 @@ expand_shift (code, mode, shifted, amount, target, unsignedp)
op1 = expand_expr (amount, NULL_RTX, VOIDmode, 0); op1 = expand_expr (amount, NULL_RTX, VOIDmode, 0);
#ifdef SHIFT_COUNT_TRUNCATED #ifdef SHIFT_COUNT_TRUNCATED
if (SHIFT_COUNT_TRUNCATED if (SHIFT_COUNT_TRUNCATED)
&& GET_CODE (op1) == CONST_INT {
&& (unsigned HOST_WIDE_INT) INTVAL (op1) >= GET_MODE_BITSIZE (mode)) if (GET_CODE (op1) == CONST_INT
op1 = GEN_INT ((unsigned HOST_WIDE_INT) INTVAL (op1) && (unsigned HOST_WIDE_INT) INTVAL (op1) >= GET_MODE_BITSIZE (mode))
% GET_MODE_BITSIZE (mode)); op1 = GEN_INT ((unsigned HOST_WIDE_INT) INTVAL (op1)
% GET_MODE_BITSIZE (mode));
else if (GET_CODE (op1) == SUBREG
&& SUBREG_WORD (op1) == 0)
op1 = SUBREG_REG (op1);
}
#endif #endif
if (op1 == const0_rtx) if (op1 == const0_rtx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment