re PR middle-end/48908 (build fails on cris-elf in libiberty:md5.c, shift-related)
2011-05-08 Richard Guenther <rguenther@suse.de> PR middle-end/48908 PR middle-end/48905 * expmed.c (expand_shift_1): Compute adjusted constant shift amount manually. From-SVN: r173550
This commit is contained in:
parent
03a7c1de31
commit
5c04950727
2 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-05-08 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/48908
|
||||
PR middle-end/48905
|
||||
* expmed.c (expand_shift_1): Compute adjusted constant shift
|
||||
amount manually.
|
||||
|
||||
2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* config/avr/avr.c (print_operand_address): Fix invalid RTL access.
|
||||
|
|
12
gcc/expmed.c
12
gcc/expmed.c
|
@ -2142,10 +2142,14 @@ expand_shift_1 (enum tree_code code, enum machine_mode mode, rtx shifted,
|
|||
rtx temp1;
|
||||
|
||||
new_amount = op1;
|
||||
other_amount
|
||||
= simplify_gen_binary (MINUS, GET_MODE (op1),
|
||||
GEN_INT (GET_MODE_BITSIZE (mode)),
|
||||
op1);
|
||||
if (CONST_INT_P (op1))
|
||||
other_amount = GEN_INT (GET_MODE_BITSIZE (mode)
|
||||
- INTVAL (op1));
|
||||
else
|
||||
other_amount
|
||||
= simplify_gen_binary (MINUS, GET_MODE (op1),
|
||||
GEN_INT (GET_MODE_BITSIZE (mode)),
|
||||
op1);
|
||||
|
||||
shifted = force_reg (mode, shifted);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue