* combine.c (simplify_shift_const): Fix previous patch.

From-SVN: r63380
This commit is contained in:
Jan Hubicka 2003-02-24 22:10:39 +01:00 committed by Jan Hubicka
parent 8b6a662e3e
commit 2d21f7d6b3
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Mon Feb 24 22:08:22 CET 2003 Jan Hubicka <jh@suse.cz>
* combine.c (simplify_shift_const): Fix previous patch.
2003-02-24 Jeff Law <law@redhat.com>
* i386.md (testdi_1_rex64): Discourage reload from using the %eax

View file

@ -9434,12 +9434,12 @@ simplify_shift_const (x, code, result_mode, varop, orig_count)
if (code == LSHIFTRT
&& GET_MODE_BITSIZE (shift_mode) <= HOST_BITS_PER_WIDE_INT
&& !(nonzero_bits (varop, shift_mode) >> count))
return const0_rtx;
varop = const0_rtx;
if (code == ASHIFT
&& GET_MODE_BITSIZE (shift_mode) <= HOST_BITS_PER_WIDE_INT
&& !((nonzero_bits (varop, shift_mode) << count)
& GET_MODE_MASK (shift_mode)))
return const0_rtx;
varop = const0_rtx;
switch (GET_CODE (varop))
{