Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions include/gcc/arm/ck_pr.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ck_pr_md_store_##N(const T *target, T value) \
{ \
T tmp; \
uint32_t flag; \
__asm __volatile("1: \n" \
__asm __volatile("1:; \n" \
"ldrexd %0, %H0, [%2]\n" \
"strexd %1, %3, %H3, [%2]\n" \
"teq %1, #0\n" \
Expand All @@ -214,7 +214,7 @@ ck_pr_cas_##N##_value(T *target, T compare, T set, T *value) \
T previous; \
int tmp; \
\
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrexd %0, %H0, [%4];" \
"cmp %Q0, %Q2;" \
"ittt eq;" \
Expand Down Expand Up @@ -258,7 +258,7 @@ ck_pr_cas_##N(T *target, T compare, T set) \
int ret; \
T tmp; \
\
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"mov %0, #0;" \
"ldrexd %1, %H1, [%4];" \
"cmp %Q1, %Q2;" \
Expand Down Expand Up @@ -299,7 +299,7 @@ CK_CC_INLINE static bool
ck_pr_cas_ptr_value(void *target, void *compare, void *set, void *value)
{
void *previous, *tmp;
__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldrex %0, [%2];"
"cmp %0, %4;"
"itt eq;"
Expand All @@ -320,7 +320,7 @@ CK_CC_INLINE static bool
ck_pr_cas_ptr(void *target, void *compare, void *set)
{
void *previous, *tmp;
__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldrex %0, [%2];"
"cmp %0, %4;"
"itt eq;"
Expand All @@ -341,7 +341,7 @@ ck_pr_cas_ptr(void *target, void *compare, void *set)
ck_pr_cas_##N##_value(T *target, T compare, T set, T *value) \
{ \
T previous = 0, tmp = 0; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrex" W " %0, [%2];" \
"cmp %0, %4;" \
"itt eq;" \
Expand All @@ -365,7 +365,7 @@ ck_pr_cas_ptr(void *target, void *compare, void *set)
ck_pr_cas_##N(T *target, T compare, T set) \
{ \
T previous = 0, tmp = 0; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrex" W " %0, [%2];" \
"cmp %0, %4;" \
"itt eq;" \
Expand Down Expand Up @@ -398,7 +398,7 @@ CK_PR_CAS(char, char, "b")
{ \
T previous = 0; \
T tmp = 0; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrex" W " %0, [%2];" \
"strex" W " %1, %3, [%2];" \
"cmp %1, #0;" \
Expand Down Expand Up @@ -429,7 +429,7 @@ CK_PR_FAS(char, char, char, "b")
{ \
T previous = 0; \
T tmp = 0; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrex" W " %0, [%2];" \
I ";" \
"strex" W " %1, %0, [%2];" \
Expand Down Expand Up @@ -470,7 +470,7 @@ CK_PR_UNARY_S(char, char, "b")
{ \
T previous = 0; \
T tmp = 0; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrex" W " %0, [%2];" \
I " %0, %0, %3;" \
"strex" W " %1, %0, [%2];" \
Expand Down Expand Up @@ -513,7 +513,7 @@ ck_pr_faa_ptr(void *target, uintptr_t delta)
{
uintptr_t previous, r, tmp;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldrex %0, [%3];"
"add %1, %4, %0;"
"strex %2, %1, [%3];"
Expand All @@ -534,7 +534,7 @@ ck_pr_faa_ptr(void *target, uintptr_t delta)
ck_pr_faa_##S(T *target, T delta) \
{ \
T previous = 0, r = 0, tmp = 0; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"ldrex" W " %0, [%3];" \
"add %1, %4, %0;" \
"strex" W " %2, %1, [%3];" \
Expand Down
14 changes: 7 additions & 7 deletions include/gcc/ppc/ck_pr.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ CK_PR_STORE_S(char, char, "stb")
ck_pr_cas_##N##_value(M *target, T compare, T set, M *value) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"lwarx %0, 0, %1;" \
"cmpw 0, %0, %3;" \
"bne- 2f;" \
Expand All @@ -170,7 +170,7 @@ CK_PR_STORE_S(char, char, "stb")
ck_pr_cas_##N(M *target, T compare, T set) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"lwarx %0, 0, %1;" \
"cmpw 0, %0, %3;" \
"bne- 2f;" \
Expand Down Expand Up @@ -199,7 +199,7 @@ CK_PR_CAS_S(int, int)
ck_pr_fas_##N(M *target, T v) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %1;" \
"st" W "cx. %2, 0, %1;" \
"bne- 1b;" \
Expand All @@ -222,7 +222,7 @@ CK_PR_FAS(uint, unsigned int, unsigned int, "w")
ck_pr_##O##_##N(M *target) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %1;" \
I ";" \
"st" W "cx. %0, 0, %1;" \
Expand Down Expand Up @@ -256,7 +256,7 @@ CK_PR_UNARY_S(int, int, "w")
ck_pr_##O##_##N(M *target, T delta) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %1;" \
I " %0, %2, %0;" \
"st" W "cx. %0, 0, %1;" \
Expand Down Expand Up @@ -293,7 +293,7 @@ ck_pr_faa_ptr(void *target, uintptr_t delta)
{
uintptr_t previous, r;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"lwarx %0, 0, %2;"
"add %1, %3, %0;"
"stwcx. %1, 0, %2;"
Expand All @@ -312,7 +312,7 @@ ck_pr_faa_ptr(void *target, uintptr_t delta)
ck_pr_faa_##S(T *target, T delta) \
{ \
T previous, r; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %2;" \
"add %1, %3, %0;" \
"st" W "cx. %1, 0, %2;" \
Expand Down
22 changes: 11 additions & 11 deletions include/gcc/ppc64/ck_pr.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ ck_pr_cas_64_value(uint64_t *target, uint64_t compare, uint64_t set, uint64_t *v
{
uint64_t previous;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldarx %0, 0, %1;"
"cmpd 0, %0, %3;"
"bne- 2f;"
Expand All @@ -176,7 +176,7 @@ ck_pr_cas_ptr_value(void *target, void *compare, void *set, void *value)
{
void *previous;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldarx %0, 0, %1;"
"cmpd 0, %0, %3;"
"bne- 2f;"
Expand All @@ -198,7 +198,7 @@ ck_pr_cas_64(uint64_t *target, uint64_t compare, uint64_t set)
{
uint64_t previous;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldarx %0, 0, %1;"
"cmpd 0, %0, %3;"
"bne- 2f;"
Expand All @@ -219,7 +219,7 @@ ck_pr_cas_ptr(void *target, void *compare, void *set)
{
void *previous;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldarx %0, 0, %1;"
"cmpd 0, %0, %3;"
"bne- 2f;"
Expand All @@ -240,7 +240,7 @@ ck_pr_cas_ptr(void *target, void *compare, void *set)
ck_pr_cas_##N##_value(T *target, T compare, T set, T *value) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"lwarx %0, 0, %1;" \
"cmpw 0, %0, %3;" \
"bne- 2f;" \
Expand All @@ -259,7 +259,7 @@ ck_pr_cas_ptr(void *target, void *compare, void *set)
ck_pr_cas_##N(T *target, T compare, T set) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"lwarx %0, 0, %1;" \
"cmpw 0, %0, %3;" \
"bne- 2f;" \
Expand All @@ -285,7 +285,7 @@ CK_PR_CAS(int, int)
ck_pr_fas_##N(M *target, T v) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %1;" \
"st" W "cx. %2, 0, %1;" \
"bne- 1b;" \
Expand All @@ -312,7 +312,7 @@ CK_PR_FAS(uint, unsigned int, unsigned int, "w")
ck_pr_##O##_##N(M *target) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %1;" \
I ";" \
"st" W "cx. %0, 0, %1;" \
Expand Down Expand Up @@ -347,7 +347,7 @@ CK_PR_UNARY_S(int, int, "w")
ck_pr_##O##_##N(M *target, T delta) \
{ \
T previous; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %1;" \
I " %0, %2, %0;" \
"st" W "cx. %0, 0, %1;" \
Expand Down Expand Up @@ -385,7 +385,7 @@ ck_pr_faa_ptr(void *target, uintptr_t delta)
{
uintptr_t previous, r;

__asm__ __volatile__("1:"
__asm__ __volatile__("1:;"
"ldarx %0, 0, %2;"
"add %1, %3, %0;"
"stdcx. %1, 0, %2;"
Expand All @@ -404,7 +404,7 @@ ck_pr_faa_ptr(void *target, uintptr_t delta)
ck_pr_faa_##S(T *target, T delta) \
{ \
T previous, r; \
__asm__ __volatile__("1:" \
__asm__ __volatile__("1:;" \
"l" W "arx %0, 0, %2;" \
"add %1, %3, %0;" \
"st" W "cx. %1, 0, %2;" \
Expand Down