This is the mail archive of the gcc@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]

Swapped lines in i386.c:k6_cost?


The k6_cost structure initializer in i386.c on the mainline contains
this fragment:

  2,					/* cost of FDIV instruction.  */
  56,					/* cost of FABS instruction.  */
  2,					/* cost of FCHS instruction.  */
  56,					/* cost of FSQRT instruction.  */

I find it difficult to believe that the K6 only took two cycles to do
a floating-point divide, but absolute value operations took fifty-six.
Perhaps the costs for FDIV and FABS have been swapped?

zw


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