Re: [PATCH][AArch64] Emit tighter strong atomic compare-exchange loop when comparing against zero

2017-06-02 Thread James Greenhalgh
On Wed, Mar 08, 2017 at 04:35:38PM +, Kyrill Tkachov wrote: > Hi all, > > For the testcase in this patch where the value of x is zero we currently > generate: > foo: > mov w1, 4 > .L2: > ldaxr w2, [x0] > cmp w2, 0 > bne .L3 > stxrw3, w1

Re: [PATCH][AArch64] Emit tighter strong atomic compare-exchange loop when comparing against zero

2017-06-02 Thread Kyrill Tkachov
Ping. Thanks, Kyrill On 08/05/17 12:00, Kyrill Tkachov wrote: Ping. Thanks, Kyrill On 24/04/17 10:38, Kyrill Tkachov wrote: Pinging this back into context so that I don't forget about it... https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00376.html Thanks, Kyrill On 08/03/17 16:35, Kyrill T

Re: [PATCH][AArch64] Emit tighter strong atomic compare-exchange loop when comparing against zero

2017-05-08 Thread Kyrill Tkachov
Ping. Thanks, Kyrill On 24/04/17 10:38, Kyrill Tkachov wrote: Pinging this back into context so that I don't forget about it... https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00376.html Thanks, Kyrill On 08/03/17 16:35, Kyrill Tkachov wrote: Hi all, For the testcase in this patch where the

Re: [PATCH][AArch64] Emit tighter strong atomic compare-exchange loop when comparing against zero

2017-04-24 Thread Kyrill Tkachov
Pinging this back into context so that I don't forget about it... https://gcc.gnu.org/ml/gcc-patches/2017-03/msg00376.html Thanks, Kyrill On 08/03/17 16:35, Kyrill Tkachov wrote: Hi all, For the testcase in this patch where the value of x is zero we currently generate: foo: mov w

[PATCH][AArch64] Emit tighter strong atomic compare-exchange loop when comparing against zero

2017-03-08 Thread Kyrill Tkachov
Hi all, For the testcase in this patch where the value of x is zero we currently generate: foo: mov w1, 4 .L2: ldaxr w2, [x0] cmp w2, 0 bne .L3 stxrw3, w1, [x0] cbnzw3, .L2 .L3: csetw0, eq ret We currently