> +;; -
> +;; Duplicate Operations
> +;; -
> +
> +(define_insn_and_split "@vec_duplicate"
> + [(set (match_operand:VLS 0 "register_operand")
> +(vec_duplicat
Committed, thanks Kito.
Pan
-Original Message-
From: Gcc-patches On Behalf
Of Kito Cheng via Gcc-patches
Sent: Monday, July 31, 2023 10:42 AM
To: Juzhe-Zhong
Cc: gcc-patches@gcc.gnu.org; kito.ch...@sifive.com; jeffreya...@gmail.com;
rdapp@gmail.com
Subject: Re: [PATCH V2] RISC-V
LGTM, thanks :)
On Mon, Jul 31, 2023 at 10:14 AM Juzhe-Zhong wrote:
>
> Consider this following case:
> void
> foo (int8_t *in, int8_t *out, int8_t x)
> {
> for (int i = 0; i < 16; i++)
> in[i] = x;
> }
>
> Compile option: --param=riscv-autovec-preference=scalable -fno-builtin
>
> Before th