gcc/
PR target/51278
* config/mips/mips.c (mips_rtx_costs): Handle baddu.
From-SVN: r181763
+2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
+
+ PR target/51278
+ * config/mips/mips.c (mips_rtx_costs): Handle baddu.
+
2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
return false;
case ZERO_EXTEND:
+ if (outer_code == SET
+ && ISA_HAS_BADDU
+ && (GET_CODE (XEXP (x, 0)) == TRUNCATE
+ || GET_CODE (XEXP (x, 0)) == SUBREG)
+ && GET_MODE (XEXP (x, 0)) == QImode
+ && GET_CODE (XEXP (XEXP (x, 0), 0)) == PLUS)
+ {
+ *total = set_src_cost (XEXP (XEXP (x, 0), 0), speed);
+ return true;
+ }
*total = mips_zero_extend_cost (mode, XEXP (x, 0));
return false;