On 12/21/2011 04:49 AM, Oleg Endo wrote:
> BTW, currently the only target utilizing the new atomic_test_and_set is
> SPARC. However, as far as I've observed an expander like
>
> (define_expand "atomic_test_and_set"
That's a mistake. The mode is significant -- it's the mode of the memory.
I'm so
On Thu, 2011-11-24 at 15:50 -0500, Andrew MacLeod wrote:
> This patch adds missing pattern support for atomic_test_and_set and
> atomic_clear operations. It also restructures the code for
> atomic_test_and_set, atomic_exchange, and __sync_lock_test_and_set so
> that it is easier to read and tr
On 11/24/2011 12:50 PM, Andrew MacLeod wrote:
> * optab.c (maybe_emit_atomic_exchange): New. Try to emit an
> atomic_exchange pattern.
> (maybe_emit_sync_lock_test_and_set): New. Try to emit an exchange
> using __sync_lock_test_and_set.
> (maybe_emit_compare_and_swap