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]

Re: [Bug target/65614] [5 Regression] PowerPC VSX systems should use XSCPSGNDP to copy scalar fp data to/from Altivec registers


On Mon, Apr 06, 2015 at 07:56:53PM -0400, David Edelsohn wrote:
> Okay.
> 
> What's the source of COSTS_N_INSNS(3) value?

It is the basic cost of a FP insn (i.e. it duplicates what rs6000_cost->fp
would be -- all of the simple FP ops are this value, XSADDDP, XSMULDP,
etc. including the two move insns XSCPSGNDP and FMR).  On the power7 and
power8, each basic FP op is 6 cycles, and all of the costs use the fact that
COSTS_N_INSNS multiplies by 2.

Obviously in the grand scheme of things, we need to rewrite the cost
infrastructure, and bring it up to date, but for now, I used the values for the
other insns.

-- 
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797


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