From 4df362edc6ce25e88776d2f5d528772d8dfc2345 Mon Sep 17 00:00:00 2001 From: Venkataramanan Kumar Date: Sat, 5 Mar 2016 17:20:22 +0000 Subject: [PATCH] Fix Multiply costs for AMD -march=znver1. 2016-03-05 Venkataramanan Kumar * config/i386/i386.c (znver1_cost): Fix Multiply cost. From-SVN: r234008 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0b7dfd98a9..2b5549808ee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-03-05 Venkataramanan Kumar + + * config/i386/i386.c (znver1_cost): Fix Multiply cost. + 2016-03-05 Venkataramanan Kumar Fix sseimul type attribute. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1f98d5bdd17..27fb15ed713 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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. */