* config/i386/i386.c (ix86_rtx_costs) [MULT]: Check op0 for
ZERO_EXTEND when computing costs for widening multiplication.
From-SVN: r130810
+2007-12-13 Torbjorn Granlund <tege@swox.com>
+
+ * config/i386/i386.c (ix86_rtx_costs) [MULT]: Check op0 for
+ ZERO_EXTEND when computing costs for widening multiplication.
+
2007-12-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/32889
nbits = 7;
/* Compute costs correctly for widening multiplication. */
- if ((GET_CODE (op0) == SIGN_EXTEND || GET_CODE (op1) == ZERO_EXTEND)
+ if ((GET_CODE (op0) == SIGN_EXTEND || GET_CODE (op0) == ZERO_EXTEND)
&& GET_MODE_SIZE (GET_MODE (XEXP (op0, 0))) * 2
== GET_MODE_SIZE (mode))
{