Re: [PATCH v2 1/2] Allow vec_duplicate_optab to fail

2021-06-07 Thread Richard Biener via Gcc-patches
On Mon, Jun 7, 2021 at 7:59 PM Richard Biener wrote: > > On Mon, Jun 7, 2021 at 4:19 PM H.J. Lu wrote: > > > > On Mon, Jun 7, 2021 at 12:12 AM Richard Sandiford > > wrote: > > > > > > "H.J. Lu" writes: > > > > Update vec_duplicate to allow to fail so that backend can only allow > > > > broadcas

Re: [PATCH v2 1/2] Allow vec_duplicate_optab to fail

2021-06-07 Thread Richard Biener via Gcc-patches
On Mon, Jun 7, 2021 at 4:19 PM H.J. Lu wrote: > > On Mon, Jun 7, 2021 at 12:12 AM Richard Sandiford > wrote: > > > > "H.J. Lu" writes: > > > Update vec_duplicate to allow to fail so that backend can only allow > > > broadcasting an integer constant to a vector when broadcast instruction > > > is

Re: [PATCH v2 1/2] Allow vec_duplicate_optab to fail

2021-06-07 Thread H.J. Lu via Gcc-patches
On Mon, Jun 7, 2021 at 12:12 AM Richard Sandiford wrote: > > "H.J. Lu" writes: > > Update vec_duplicate to allow to fail so that backend can only allow > > broadcasting an integer constant to a vector when broadcast instruction > > is available. > > I'm not sure why we need this to fail though.

Re: [PATCH v2 1/2] Allow vec_duplicate_optab to fail

2021-06-07 Thread Richard Sandiford via Gcc-patches
"H.J. Lu" writes: > Update vec_duplicate to allow to fail so that backend can only allow > broadcasting an integer constant to a vector when broadcast instruction > is available. I'm not sure why we need this to fail though. Once the optab is defined for target X, the optab should handle all dup