]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.c (ix86_rtx_costs): Check op0 for ZERO_EXTEND when computing costs for widening...
authorTorbjorn Granlund <tege@swox.com>
Thu, 13 Dec 2007 09:25:46 +0000 (09:25 +0000)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 13 Dec 2007 09:25:46 +0000 (10:25 +0100)
        * config/i386/i386.c (ix86_rtx_costs) [MULT]: Check op0 for
        ZERO_EXTEND when computing costs for widening multiplication.

From-SVN: r130810

gcc/ChangeLog
gcc/config/i386/i386.c

index 189371ddb0aff2d32a59b0a7ec395d77b2f5a56a..bdcb44bc2b1d8b4a6c8c913447d32273ece1ec47 100644 (file)
@@ -1,3 +1,8 @@
+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
index ddc02b5c673a754279a51a9e827f6d41444cdafd..e720a58d5883fe5a6c631ca24fba319c643dd4af 100644 (file)
@@ -17192,7 +17192,7 @@ ix86_rtx_costs (rtx x, int code, int outer_code, 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))
            {