]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix logic error in r188785
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jun 2012 21:30:41 +0000 (21:30 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jun 2012 21:30:41 +0000 (21:30 +0000)
PR target/53749
        * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
        in 2012-06-23 change.  Adjust two other DImode tests as well.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189026 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 87cc23bccd5bc04e2cd928fcde99f60a12065a01..344c2987dec887e60c923e91c260dcea2aaebe39 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-27  Richard Henderson  <rth@redhat.com>
+
+       PR target/53749
+       * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
+       in 2012-06-23 change.  Adjust two other DImode tests as well.
+
 2012-06-27  Nick Clifton  <nickc@redhat.com>
 
        * config/rx/rx.md (comparesi3_extend): Remove = modifier from
index edfc6498d73e3b01863839d24af6c64c782d3113..aae8a4d58141e39ee1bb55bdf9061cfb0ec3c009 100644 (file)
@@ -32210,9 +32210,8 @@ ix86_rtx_costs (rtx x, int code_i, int outer_code_i, int opno, int *total,
            }
          else
            *total = cost->fabs;
-         return false;
        }
-      if (GET_MODE_SIZE (mode) < UNITS_PER_WORD)
+      else if (GET_MODE_SIZE (mode) > UNITS_PER_WORD)
        {
          if (CONST_INT_P (XEXP (x, 1)))
            {
@@ -32441,7 +32440,7 @@ ix86_rtx_costs (rtx x, int code_i, int outer_code_i, int opno, int *total,
     case AND:
     case IOR:
     case XOR:
-      if (!TARGET_64BIT && mode == DImode)
+      if (GET_MODE_SIZE (mode) > UNITS_PER_WORD)
        {
          *total = (cost->add * 2
                    + (rtx_cost (XEXP (x, 0), outer_code, opno, speed)
@@ -32479,9 +32478,8 @@ ix86_rtx_costs (rtx x, int code_i, int outer_code_i, int opno, int *total,
          /* At least for published AMD latencies, this really is the same
             as the latency for a simple fpu operation like fabs.  */
          *total = cost->fabs;
-         return false;
        }
-      if (!TARGET_64BIT && mode == DImode)
+      else if (GET_MODE_SIZE (mode) > UNITS_PER_WORD)
        *total = cost->add * 2;
       else
        *total = cost->add;