Use optab_libfunc to access sync_lock_test_and_set libfunc on hppa-linux.
commit4759c16beec2a7a4ed56608adcf932f9a6acbdc7
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 2 Jan 2022 16:40:48 +0000 (2 16:40 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 2 Jan 2022 16:40:48 +0000 (2 16:40 +0000)
tree17b6f7d208bf037933b017e1c4a74cf5c913418c
parent62eb5308fe6c46f7eded3c9e06c53491515a6e63
Use optab_libfunc to access sync_lock_test_and_set libfunc on hppa-linux.

2022-01-02  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.md (atomic_storeq): Use optab_libfunc to access
sync_lock_test_and_set libfunc. Call convert_memory_address to
convert memory address to Pmode.
(atomic_storehi, atomic_storesi, atomic_storedi): Likewise.
gcc/config/pa/pa.md