This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Swapped lines in i386.c:k6_cost?
- From: Zack Weinberg <zack at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Jan Hubicka <jh at suse dot cz>
- Date: Sun, 13 Oct 2002 21:37:21 -0700
- Subject: 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