public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: John David Anglin <danglin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-9426] Use optab_libfunc to access sync_lock_test_and_set libfunc on hppa-linux. Date: Sun, 2 Jan 2022 16:42:35 +0000 (GMT) [thread overview] Message-ID: <20220102164235.CF3B53858C27@sourceware.org> (raw) https://gcc.gnu.org/g:21a0bd00f62af9dec87a10ec512aacf1db08e70f commit r11-9426-g21a0bd00f62af9dec87a10ec512aacf1db08e70f Author: John David Anglin <danglin@gcc.gnu.org> Date: Sun Jan 2 16:42:02 2022 +0000 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. Diff: --- gcc/config/pa/pa.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index af5449a9ea3..31e3b1bff80 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -10366,10 +10366,10 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" { if (TARGET_SYNC_LIBCALL) { - rtx libfunc = init_one_libfunc ("__sync_lock_test_and_set_1"); + rtx libfunc = optab_libfunc (sync_lock_test_and_set_optab, QImode); + rtx addr = convert_memory_address (Pmode, XEXP (operands[0], 0)); - emit_library_call (libfunc, LCT_NORMAL, VOIDmode, - XEXP (operands[0], 0), Pmode, + emit_library_call (libfunc, LCT_NORMAL, VOIDmode, addr, Pmode, operands[1], QImode); DONE; } @@ -10386,10 +10386,10 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" { if (TARGET_SYNC_LIBCALL) { - rtx libfunc = init_one_libfunc ("__sync_lock_test_and_set_2"); + rtx libfunc = optab_libfunc (sync_lock_test_and_set_optab, HImode); + rtx addr = convert_memory_address (Pmode, XEXP (operands[0], 0)); - emit_library_call (libfunc, LCT_NORMAL, VOIDmode, - XEXP (operands[0], 0), Pmode, + emit_library_call (libfunc, LCT_NORMAL, VOIDmode, addr, Pmode, operands[1], HImode); DONE; } @@ -10406,10 +10406,10 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" { if (TARGET_SYNC_LIBCALL) { - rtx libfunc = init_one_libfunc ("__sync_lock_test_and_set_4"); + rtx libfunc = optab_libfunc (sync_lock_test_and_set_optab, SImode); + rtx addr = convert_memory_address (Pmode, XEXP (operands[0], 0)); - emit_library_call (libfunc, LCT_NORMAL, VOIDmode, - XEXP (operands[0], 0), Pmode, + emit_library_call (libfunc, LCT_NORMAL, VOIDmode, addr, Pmode, operands[1], SImode); DONE; } @@ -10459,10 +10459,10 @@ add,l %2,%3,%3\;bv,n %%r0(%3)" if (TARGET_SYNC_LIBCALL) { - rtx libfunc = init_one_libfunc ("__sync_lock_test_and_set_8"); + rtx libfunc = optab_libfunc (sync_lock_test_and_set_optab, DImode); + rtx addr = convert_memory_address (Pmode, XEXP (operands[0], 0)); - emit_library_call (libfunc, LCT_NORMAL, VOIDmode, - XEXP (operands[0], 0), Pmode, + emit_library_call (libfunc, LCT_NORMAL, VOIDmode, addr, Pmode, operands[1], DImode); DONE; }
reply other threads:[~2022-01-02 16:42 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220102164235.CF3B53858C27@sourceware.org \ --to=danglin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).