Skip to content

Commit 3f7d12d

Browse files
committed
refs #206: also consider ASHIFTRT
1 parent 594b33e commit 3f7d12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/bbb-opts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4797,7 +4797,7 @@ opt_elim_dead_assign (int blocked_regno)
47974797
rtx_code opcode = GET_CODE(ssrc);
47984798

47994799
// look for superfluous ZERO_EXTEND or SIGN_EXTEND
4800-
if (opcode == ASHIFT || opcode == LSHIFTRT)
4800+
if (opcode == ASHIFT || opcode == ASHIFTRT || opcode == LSHIFTRT)
48014801
{
48024802
rtx op = XEXP(ssrc, 1);
48034803
if (REG_P (op))

0 commit comments

Comments
 (0)