Re: [RFC][PATCH 02/31] locking,alpha: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()
From: Richard Henderson
Date: Fri Apr 22 2016 - 12:57:17 EST
- Next message: Will Deacon: "[PATCH 1/2] arm64: atomic: generate LSE non-return cases using common macros"
- Previous message: Bjorn Andersson: "Re: [PATCH v2.1 1/9] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding"
- In reply to: Peter Zijlstra: "[RFC][PATCH 02/31] locking,alpha: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()"
- Next in thread: Peter Zijlstra: "Re: [RFC][PATCH 02/31] locking,alpha: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/22/2016 02:04 AM, Peter Zijlstra wrote:
> + "1: ldl_l %0,%1\n" \
> + " mov %0,%2\n" \
> + " " #asm_op " %0,%3,%0\n" \
> + " stl_c %0,%1\n" \
No need for the extra mov.
ldl_l %2,%1
asm_op %2,%3,%0
stl_c %0,%1
r~
- Next message: Will Deacon: "[PATCH 1/2] arm64: atomic: generate LSE non-return cases using common macros"
- Previous message: Bjorn Andersson: "Re: [PATCH v2.1 1/9] dt-binding: remoteproc: Introduce Qualcomm WCNSS loader binding"
- In reply to: Peter Zijlstra: "[RFC][PATCH 02/31] locking,alpha: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()"
- Next in thread: Peter Zijlstra: "Re: [RFC][PATCH 02/31] locking,alpha: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]