mips.h (CONSTANT_POOL_COST): Move to...
authorRichard Sandiford <richard@codesourcery.com>
Tue, 11 Sep 2007 09:24:59 +0000 (09:24 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 11 Sep 2007 09:24:59 +0000 (09:24 +0000)
commit8144a1a8120beac962f0dfa6dc76dbd00b407aad
tree8868dfe9c20b978af85a3ed83bcf1a7276e310f2
parentb61c7743b70af09c6675005924700cd4b485e68b
mips.h (CONSTANT_POOL_COST): Move to...

gcc/
2007-09-11  Richard Sandiford  <richard@codesourcery.com>
    Nigel Stephens  <nigel@mips.com>
    David Ung  <davidu@mips.com>

* config/mips/mips.h (CONSTANT_POOL_COST): Move to...
* config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
(mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
(mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
(mips_zero_extend_cost): New functions.
(mips_rtx_costs): Treat COMPARE constants as having zero cost.
Use the new functions.  Tweak many cost estimates, both here
and in the new subroutines.  Return false when the cost of the
operands has not been calculated.  Check for *clear_upper32.
Check for floating-point multiply-add, reciprocal and rsqrt
patterns.  Handle comparison and rotation codes.

Co-Authored-By: David Ung <davidu@mips.com>
Co-Authored-By: Nigel Stephens <nigel@mips.com>
From-SVN: r128364
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h