OSDN Git Service

2008-05-08 David Daney <ddaney@avtrex.com>
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2008 17:04:12 +0000 (17:04 +0000)
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 May 2008 17:04:12 +0000 (17:04 +0000)
commit40efb3382e6fc70e7d1eb0fcac943ff3da183bbf
tree53a03c6f31da3208a923be513b8bab95fd23f140
parentf35ba9d17fa23c33028c698f9df544d641d8717a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135088 138bc75d-0d04-0410-961f-82ee72b054a4
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