Re: [PATCH] RISC-V: Allow unaligned accesses in cpymemsi expansion

2021-08-16 Thread Kito Cheng via Gcc-patches
Hi Christoph: Generally LGTM, only 1 minor comment. > @@ -3292,8 +3294,17 @@ riscv_expand_block_move (rtx dest, rtx src, rtx length) >unsigned HOST_WIDE_INT hwi_length = UINTVAL (length); >unsigned HOST_WIDE_INT factor, align; > > - align = MIN (MIN (MEM_ALIGN (src), MEM_ALIG

Re: [PATCH] RISC-V: Allow unaligned accesses in cpymemsi expansion

2021-08-13 Thread Christoph Müllner via Gcc-patches
Ping. On Thu, Aug 5, 2021 at 11:11 AM Christoph Müllner wrote: > > Ping. > > On Thu, Jul 29, 2021 at 4:33 PM Christoph Muellner > wrote: > > > > The RISC-V cpymemsi expansion is called, whenever the by-pieces > > infrastructure will not be taking care of the builtin expansion. > > Currently, tha

Re: [PATCH] RISC-V: Allow unaligned accesses in cpymemsi expansion

2021-08-05 Thread Christoph Müllner via Gcc-patches
Ping. On Thu, Jul 29, 2021 at 4:33 PM Christoph Muellner wrote: > > The RISC-V cpymemsi expansion is called, whenever the by-pieces > infrastructure will not be taking care of the builtin expansion. > Currently, that's the case for e.g. memcpy() with n <= 24 bytes. > The code emitted by the by-pi

[PATCH] RISC-V: Allow unaligned accesses in cpymemsi expansion

2021-07-29 Thread Christoph Muellner via Gcc-patches
The RISC-V cpymemsi expansion is called, whenever the by-pieces infrastructure will not be taking care of the builtin expansion. Currently, that's the case for e.g. memcpy() with n <= 24 bytes. The code emitted by the by-pieces infrastructure emits code, that performs unaligned accesses if the targ