@@ -88,10 +88,10 @@ static inline bool pmix_atomic_compare_exchange_strong_32 (pmix_atomic_int32_t *
8888 int32_t prev , tmp ;
8989 bool ret ;
9090
91- __asm__ __volatile__ ("1: ldaxr %w0, [%2] \n"
91+ __asm__ __volatile__ ("1: ldaxr %w0, [%2] \n"
9292 " cmp %w0, %w3 \n"
9393 " bne 2f \n"
94- " stxr %w1, %w4, [%2] \n"
94+ " stlxr %w1, %w4, [%2] \n"
9595 " cbnz %w1, 1b \n"
9696 "2: \n"
9797 : "=&r" (prev ), "=&r" (tmp )
@@ -130,7 +130,7 @@ static inline bool pmix_atomic_compare_exchange_strong_acq_32 (pmix_atomic_int32
130130 __asm__ __volatile__ ("1: ldaxr %w0, [%2] \n"
131131 " cmp %w0, %w3 \n"
132132 " bne 2f \n"
133- " stxr %w1, %w4, [%2] \n"
133+ " stlxr %w1, %w4, [%2] \n"
134134 " cbnz %w1, 1b \n"
135135 "2: \n"
136136 : "=&r" (prev ), "=&r" (tmp )
@@ -148,7 +148,7 @@ static inline bool pmix_atomic_compare_exchange_strong_rel_32 (pmix_atomic_int32
148148 int32_t prev , tmp ;
149149 bool ret ;
150150
151- __asm__ __volatile__ ("1: ldxr %w0, [%2] \n"
151+ __asm__ __volatile__ ("1: ldaxr %w0, [%2] \n"
152152 " cmp %w0, %w3 \n"
153153 " bne 2f \n"
154154 " stlxr %w1, %w4, [%2] \n"
@@ -195,10 +195,10 @@ static inline bool pmix_atomic_compare_exchange_strong_64 (pmix_atomic_int64_t *
195195 int tmp ;
196196 bool ret ;
197197
198- __asm__ __volatile__ ("1: ldaxr %0, [%2] \n"
198+ __asm__ __volatile__ ("1: ldaxr %0, [%2] \n"
199199 " cmp %0, %3 \n"
200200 " bne 2f \n"
201- " stxr %w1, %4, [%2] \n"
201+ " stlxr %w1, %4, [%2] \n"
202202 " cbnz %w1, 1b \n"
203203 "2: \n"
204204 : "=&r" (prev ), "=&r" (tmp )
@@ -239,7 +239,7 @@ static inline bool pmix_atomic_compare_exchange_strong_acq_64 (pmix_atomic_int64
239239 __asm__ __volatile__ ("1: ldaxr %0, [%2] \n"
240240 " cmp %0, %3 \n"
241241 " bne 2f \n"
242- " stxr %w1, %4, [%2] \n"
242+ " stlxr %w1, %4, [%2] \n"
243243 " cbnz %w1, 1b \n"
244244 "2: \n"
245245 : "=&r" (prev ), "=&r" (tmp )
@@ -258,7 +258,7 @@ static inline bool pmix_atomic_compare_exchange_strong_rel_64 (pmix_atomic_int64
258258 int tmp ;
259259 bool ret ;
260260
261- __asm__ __volatile__ ("1: ldxr %0, [%2] \n"
261+ __asm__ __volatile__ ("1: ldaxr %0, [%2] \n"
262262 " cmp %0, %3 \n"
263263 " bne 2f \n"
264264 " stlxr %w1, %4, [%2] \n"
@@ -305,9 +305,9 @@ static inline bool pmix_atomic_compare_exchange_strong_rel_64 (pmix_atomic_int64
305305 type newval, old; \
306306 int32_t tmp; \
307307 \
308- __asm__ __volatile__("1: ldxr %" reg "1, [%3] \n" \
308+ __asm__ __volatile__("1: ldaxr %" reg "1, [%3] \n" \
309309 " " inst " %" reg "0, %" reg "1, %" reg "4 \n" \
310- " stxr %w2, %" reg "0, [%3] \n" \
310+ " stlxr %w2, %" reg "0, [%3] \n" \
311311 " cbnz %w2, 1b \n" \
312312 : "=&r" (newval), "=&r" (old), "=&r" (tmp) \
313313 : "r" (addr), "r" (value) \
0 commit comments