Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-07-24 Thread Segher Boessenkool
On Fri, Jul 07, 2017 at 06:56:09AM -0500, Segher Boessenkool wrote: > On Thu, Jun 22, 2017 at 10:59:05PM -0600, Jeff Law wrote: > > On 05/28/2017 06:31 AM, Segher Boessenkool wrote: > > > __atomic_add_fetch adds a value to some memory, and returns the result. > > > If there is no direct support for

Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-07-07 Thread Segher Boessenkool
On Thu, Jun 22, 2017 at 10:59:05PM -0600, Jeff Law wrote: > On 05/28/2017 06:31 AM, Segher Boessenkool wrote: > > __atomic_add_fetch adds a value to some memory, and returns the result. > > If there is no direct support for this, expand_builtin_atomic_fetch_op > > is asked to implement this as __at

Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-06-23 Thread Jeff Law
On 06/23/2017 11:44 AM, Segher Boessenkool wrote: > On Thu, Jun 22, 2017 at 10:59:05PM -0600, Jeff Law wrote: >> On 05/28/2017 06:31 AM, Segher Boessenkool wrote: >>> __atomic_add_fetch adds a value to some memory, and returns the result. >>> If there is no direct support for this, expand_builtin_a

Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-06-23 Thread Segher Boessenkool
On Thu, Jun 22, 2017 at 10:59:05PM -0600, Jeff Law wrote: > On 05/28/2017 06:31 AM, Segher Boessenkool wrote: > > __atomic_add_fetch adds a value to some memory, and returns the result. > > If there is no direct support for this, expand_builtin_atomic_fetch_op > > is asked to implement this as __at

Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-06-22 Thread Jeff Law
On 05/28/2017 06:31 AM, Segher Boessenkool wrote: > __atomic_add_fetch adds a value to some memory, and returns the result. > If there is no direct support for this, expand_builtin_atomic_fetch_op > is asked to implement this as __atomic_fetch_add (which returns the > original value of the mem), fo

[ping x2] Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-06-10 Thread Segher Boessenkool
Ping. On Wed, May 31, 2017 at 08:19:56AM -0500, Segher Boessenkool wrote: > Ping. > > (Sorry for the very aggressive ping; this fixes 764 testsuite failures > on powerpc-linux). > > > Segher > > > On Sun, May 28, 2017 at 12:31:12PM +, Segher Boessenkool wrote: > > __atomic_add_fetch adds

Re: [PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-05-31 Thread Segher Boessenkool
Ping. (Sorry for the very aggressive ping; this fixes 764 testsuite failures on powerpc-linux). Segher On Sun, May 28, 2017 at 12:31:12PM +, Segher Boessenkool wrote: > __atomic_add_fetch adds a value to some memory, and returns the result. > If there is no direct support for this, expand_

[PATCH] Fix expand_builtin_atomic_fetch_op for pre-op (PR80902)

2017-05-28 Thread Segher Boessenkool
__atomic_add_fetch adds a value to some memory, and returns the result. If there is no direct support for this, expand_builtin_atomic_fetch_op is asked to implement this as __atomic_fetch_add (which returns the original value of the mem), followed by the addition. Now, the __atomic_add_fetch could