hppa: Fix asm in atomic_store_8 in sync-libfuncs.c

Fix typo in the asm in atomic_store_8.  Also correct floating
point store.

Reported by Nick Hudson for netbsd.

2025-09-25  John David Anglin  <danglin@gcc.gnu.org>

libgcc/ChangeLog:

	* config/pa/sync-libfuncs.c (atomic_store_8): Fix asm.
This commit is contained in:
John David Anglin
2025-09-25 10:49:39 -04:00
parent 5756d0b613
commit 80d729c4b1

View File

@@ -133,11 +133,11 @@ atomic_store_8 (volatile void *ptr, u64 value)
{
double tmp;
asm volatile ("stws|stw} %2,-16(%%sp)\n\t"
"{stws|stw} %R2,-12(%%sp)\n\t"
"{fldds|fldd} -16(%%sp),%1\n\t"
"{fstds|fstd} %1,0(%0)"
: "=m" (ptr), "=&f" (tmp) : "r" (value): "memory");
asm volatile ("{stws|stw} %1,-16(%%sp)\n\t"
"{stws|stw} %R1,-12(%%sp)\n\t"
"{fldds|fldd} -16(%%sp),%0\n\t"
: "=f" (tmp) : "r" (value): "memory");
*(volatile double *)ptr = tmp;
}
#endif