Fix Multiply costs for AMD -march=znver1.
authorvekumar <vekumar@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Mar 2016 17:20:22 +0000 (17:20 +0000)
committervekumar <vekumar@138bc75d-0d04-0410-961f-82ee72b054a4>
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.

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

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

index d0b7dfd..2b55498 100644 (file)
@@ -1,5 +1,9 @@
 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.
        * config/i386/znver1.md 
        (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
index 1f98d5b..27fb15e 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.  */