This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Fix typo in ix86_rtx_costs


Hello!

This typo was pointed out by Torbjorn in PR 34451. Patch is currently
in testing, and will be committed to SVN and 4.2 branch as obvious
once testing finishes.

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.

Uros.

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 130808)
+++ config/i386/i386.c  (working copy)
@@ -22236,7 +22236,7 @@
            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))
            {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]