summaryrefslogtreecommitdiffstats
path: root/include/gcc/aarch64/ck_pr.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 07:50:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 07:50:14 +0000
commit7020f6bf1e08bb16ab742cfd17b109e196096ee2 (patch)
tree7ef0713cfca533a50589c9c64577c7986b485042 /include/gcc/aarch64/ck_pr.h
parentAdding upstream version 0.7.1. (diff)
downloadck-upstream/0.7.2.tar.xz
ck-upstream/0.7.2.zip
Adding upstream version 0.7.2.upstream/0.7.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/gcc/aarch64/ck_pr.h')
-rw-r--r--include/gcc/aarch64/ck_pr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/gcc/aarch64/ck_pr.h b/include/gcc/aarch64/ck_pr.h
index 0a47307..3d269a5 100644
--- a/include/gcc/aarch64/ck_pr.h
+++ b/include/gcc/aarch64/ck_pr.h
@@ -137,8 +137,8 @@ CK_PR_LOAD_S_64(double, double, "ldr")
CK_CC_INLINE static void \
ck_pr_md_store_##S(M *target, T v) \
{ \
- __asm__ __volatile__(I " %w1, [%0]" \
- : \
+ __asm__ __volatile__(I " %w2, [%1]" \
+ : "=m" (*(T *)target) \
: "r" (target), \
"r" (v) \
: "memory"); \
@@ -148,8 +148,8 @@ CK_PR_LOAD_S_64(double, double, "ldr")
CK_CC_INLINE static void \
ck_pr_md_store_##S(M *target, T v) \
{ \
- __asm__ __volatile__(I " %1, [%0]" \
- : \
+ __asm__ __volatile__(I " %2, [%1]" \
+ : "=m" (*(T *)target) \
: "r" (target), \
"r" (v) \
: "memory"); \