mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user