]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix Multiply costs for AMD -march=znver1.
authorVenkataramanan Kumar <venkataramanan.kumar@amd.com>
Sat, 5 Mar 2016 17:20:22 +0000 (17:20 +0000)
committerVenkataramanan Kumar <vekumar@gcc.gnu.org>
Sat, 5 Mar 2016 17:20:22 +0000 (17:20 +0000)
2016-03-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>

        * config/i386/i386.c (znver1_cost): Fix Multiply cost.

From-SVN: r234008

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

index d0b7dfd98a9d4a80d57dffe9fdea5fd9d6864ce6..2b5549808ee37b380826d8afab524243e3c16841 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
+
+       * config/i386/i386.c (znver1_cost): Fix Multiply cost.
+
 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
 
        Fix sseimul type attribute.
index 1f98d5bdd171277617851dee25def90c0648b5ba..27fb15ed71312d255ab0203f424d9dcd27ae7a89 100644 (file)
@@ -1350,11 +1350,11 @@ struct processor_costs znver1_cost = {
   COSTS_N_INSNS (1),                   /* cost of a lea instruction.  */
   COSTS_N_INSNS (1),                   /* variable shift costs.  */
   COSTS_N_INSNS (1),                   /* constant shift costs.  */
-  {COSTS_N_INSNS (4),                  /* cost of starting multiply for QI.  */
-   COSTS_N_INSNS (4),                  /*                               HI.  */
-   COSTS_N_INSNS (4),                  /*                               SI.  */
-   COSTS_N_INSNS (6),                  /*                               DI.  */
-   COSTS_N_INSNS (6)},                 /*                            other.  */
+  {COSTS_N_INSNS (3),                  /* cost of starting multiply for QI.  */
+   COSTS_N_INSNS (3),                  /*                               HI.  */
+   COSTS_N_INSNS (3),                  /*                               SI.  */
+   COSTS_N_INSNS (4),                  /*                               DI.  */
+   COSTS_N_INSNS (4)},                 /*                            other.  */
   0,                                   /* cost of multiply per each bit
                                            set.  */
   {COSTS_N_INSNS (19),                 /* cost of a divide/mod for QI.  */