forked from OSchip/llvm-project
[NFC][compiler-rt] Format file lib/builtins/arm/sync-ops.h
This commit is contained in:
parent
910a642c0a
commit
f165c23bf3
|
@ -36,7 +36,7 @@
|
|||
.thumb; \
|
||||
.syntax unified; \
|
||||
DEFINE_COMPILERRT_THUMB_FUNCTION(__sync_fetch_and_##op) \
|
||||
push {r4, r5, r6, lr}; \
|
||||
push{r4, r5, r6, lr}; \
|
||||
dmb; \
|
||||
mov r12, r0; \
|
||||
LOCAL_LABEL(tryatomic_##op) : ldrexd r0, r1, [r12]; \
|
||||
|
@ -52,8 +52,7 @@
|
|||
#define SYNC_OP_4(op) \
|
||||
.p2align 2; \
|
||||
DEFINE_COMPILERRT_THUMB_FUNCTION(__sync_fetch_and_##op) \
|
||||
LOCAL_LABEL(tryatomic_##op) : \
|
||||
mov r12, r0; \
|
||||
LOCAL_LABEL(tryatomic_##op) : mov r12, r0; \
|
||||
op(r2, r0, r1); \
|
||||
str r2, [r12]; \
|
||||
ldr r12, [r12]; \
|
||||
|
@ -64,9 +63,8 @@
|
|||
#define SYNC_OP_8(op) \
|
||||
.p2align 2; \
|
||||
DEFINE_COMPILERRT_THUMB_FUNCTION(__sync_fetch_and_##op) \
|
||||
push {r4, r5, r6, lr}; \
|
||||
LOCAL_LABEL(tryatomic_##op) : \
|
||||
mov r12, r0; \
|
||||
push{r4, r5, r6, lr}; \
|
||||
LOCAL_LABEL(tryatomic_##op) : mov r12, r0; \
|
||||
op(r4, r5, r0, r1, r2, r3); \
|
||||
stm r12, {r4, r5}; \
|
||||
ldm r12, {r6, r12}; \
|
||||
|
|
Loading…
Reference in New Issue