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: PowerPC multiply and -Os


>>>>> Dale Johannesen writes:

Dale> (Funny, Apple is probably more concerned about code size than the next 5 
Dale> companies
Dale> put together, but this case never showed up.)

	It all depends on the cost.  For most processors, the cost in this
case (multiply by 10, which is less than 256) is 3 cycles, so multiply
wins.  It's only for some slower processors, like the default for
-mcpu=powerpc, where the cost is larger, making the 5-cycle sequence least
cost.  It probably doesn't occur for any processors Apple currently uses.

David


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