Re: [PATCH v4] RISC-V: Add support for inlining subword atomic operations

2022-11-15 Thread Jeff Law via Gcc-patches
On 10/28/22 10:55, David Abdurachmanov via Gcc-patches wrote: On Fri, Sep 2, 2022 at 1:09 PM Kito Cheng via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: LGTM with minor comments, it's time to move forward, thanks Patrick and Palmer. Ping. Any plans to finally land this one for GCC 13? Th

Re: [PATCH v4] RISC-V: Add support for inlining subword atomic operations

2022-10-28 Thread David Abdurachmanov via Gcc-patches
On Fri, Sep 2, 2022 at 1:09 PM Kito Cheng via Gcc-patches < gcc-patches@gcc.gnu.org> wrote: > LGTM with minor comments, it's time to move forward, thanks Patrick and > Palmer. > Ping. Any plans to finally land this one for GCC 13? The hope is that this patch would make life significantly easier

Re: [PATCH v4] RISC-V: Add support for inlining subword atomic operations

2022-09-02 Thread Kito Cheng via Gcc-patches
LGTM with minor comments, it's time to move forward, thanks Patrick and Palmer. > + > +void > +riscv_subword_address (rtx mem, rtx *aligned_mem, rtx *shift, rtx *mask, > + rtx *not_mask) > +{ > + /* Align the memory addess to a word. */ > + rtx addr = force_reg (Pmode, XEXP

[PATCH v4] RISC-V: Add support for inlining subword atomic operations

2022-08-23 Thread Palmer Dabbelt
From: Patrick O'Neill RISC-V has no support for subword atomic operations; code currently generates libatomic library calls. This patch changes the default behavior to inline subword atomic calls (using the same logic as the existing library call). Behavior can be specified using the -minline-at