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<mode>"
That's a mistake. The mode is significant -- it's the mode of the memory. I'm sorry I missed that when reviewing Andrew's patch. I guess there's more that'll be needed to actually make the code work. r~