summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-13 09:19:11 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-13 09:19:11 +0000
commit969757fa73cfba4014675753d3aa389108df5fa1 (patch)
tree074ba42562333ab2894f607e100d882f360bb9ed /gcc/config/i386
parenta481f28f0a8a213e2cfbd5044737d8f0fe14d765 (diff)
downloadgcc-969757fa73cfba4014675753d3aa389108df5fa1.tar.gz
* config/i386/i386.c (ix86_rtx_costs) [MULT]: Check op0 for
ZERO_EXTEND when computing costs for widening multiplication. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130809 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index ebbf48957ba..fcae07758e0 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -22236,7 +22236,7 @@ ix86_rtx_costs (rtx x, int code, int outer_code_i, int *total)
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))
{