dojump.c (prefer_and_bit_test): Fix which part of the and_test is replaced.

2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>

        * dojump.c (prefer_and_bit_test): Fix which part of
        the and_test is replaced.

From-SVN: r79784
This commit is contained in:
Andrew Pinski 2004-03-21 08:04:55 -08:00
parent f80352b81a
commit 0f005f338f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
* dojump.c (prefer_and_bit_test): Fix which part of
the and_test is replaced.
2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
* frontends.texi: Add missing line.
@ -274,7 +279,6 @@
* config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
macro for mixed mode.
>>>>>>> 2.3203
2004-03-18 Jan Hubicka <jh@suse.cz>
* predict.c (propagate_freq): Compute correctly frequency of

View File

@ -135,7 +135,7 @@ prefer_and_bit_test (enum machine_mode mode, int bitnum)
}
/* Fill in the integers. */
XEXP (and_test, 0) = GEN_INT ((unsigned HOST_WIDE_INT) 1 << bitnum);
XEXP (and_test, 1) = GEN_INT ((unsigned HOST_WIDE_INT) 1 << bitnum);
XEXP (XEXP (shift_test, 0), 1) = GEN_INT (bitnum);
return (rtx_cost (and_test, IF_THEN_ELSE)