target-supports.exp (check_effective_target_sync_int_long): Add mips*-*-*.
authorDavid Daney <ddaney@avtrex.com>
Thu, 8 May 2008 17:04:12 +0000 (17:04 +0000)
committerDavid Daney <daney@gcc.gnu.org>
Thu, 8 May 2008 17:04:12 +0000 (17:04 +0000)
commit977502ff8431f42bc84b71dd5814658439610c7b
tree53a03c6f31da3208a923be513b8bab95fd23f140
parent627ab8616cc19a4bed7ca2d4273e3dc85aab39b4
target-supports.exp (check_effective_target_sync_int_long): Add mips*-*-*.

2008-05-08  David Daney  <ddaney@avtrex.com>

* lib/target-supports.exp (check_effective_target_sync_int_long): Add
mips*-*-*.
(check_effective_target_sync_char_short): Same.

2008-05-08  David Daney  <ddaney@avtrex.com>
    Richard Sandiford  <rsandifo@nildram.co.uk>

* config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
special case of constant zero operands.
* config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
old and new values.  Special case constant zero values.
* config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
fails.
(MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
(MIPS_COMPARE_AND_SWAP_12_0): New macro.

Co-Authored-By: Richard Sandiford <rsandifo@nildram.co.uk>
From-SVN: r135088
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp