ifcvt.c (noce_get_condition): Check condition variable is not small_register_classes_for_mode_p before accepting.

2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>

    * ifcvt.c (noce_get_condition): Check condition variable is not
    small_register_classes_for_mode_p before accepting.

From-SVN: r184599
This commit is contained in:
Stuart Henderson 2012-02-27 14:30:44 +00:00
parent cc2de92d5a
commit 2662a82152
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
* ifcvt.c (noce_get_condition): Check condition variable is not
small_register_classes_for_mode_p before accepting.
2012-02-27 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.

View File

@ -2295,7 +2295,9 @@ noce_get_condition (rtx jump, rtx *earliest, bool then_else_reversed)
cond = XEXP (SET_SRC (set), 0);
tmp = XEXP (cond, 0);
if (REG_P (tmp) && GET_MODE_CLASS (GET_MODE (tmp)) == MODE_INT)
if (REG_P (tmp) && GET_MODE_CLASS (GET_MODE (tmp)) == MODE_INT
&& (GET_MODE (tmp) != BImode
|| !targetm.small_register_classes_for_mode_p (BImode)))
{
*earliest = jump;