On Wed, Nov 16, 2022 at 03:40:02PM +0000, Tamar Christina wrote: > > Even: > > > > --- gcc/match.pd.jj 2022-11-15 07:56:05.240348804 +0100 > > +++ gcc/match.pd 2022-11-16 16:35:34.854080956 +0100 > > @@ -8259,7 +8259,7 @@ and, > > (simplify > > (op (vec_perm @0 @0 @2) (vec_perm @1 @1 @2)) > > (if (VECTOR_INTEGER_TYPE_P (type)) > > - (vec_perm (op @0 @1) (op @0 @1) @2)))) > > + (vec_perm (op@3 @0 @1) @3 @2)))) > > > > /* Similar for float arithmetic when permutation constant covers > > all vector elements. */ > > @@ -8298,4 +8298,4 @@ and, > > } > > } > > (if (full_perm_p) > > - (vec_perm (op @0 @1) (op @0 @1) @2)))))) > > + (vec_perm (op@3 @0 @1) @3 @2)))))) > > > > From quick look at the dumps, it seems to work fine. > > > > Jakub > > Yes that's the patch I'm currently reg-testing 😊
Great ;) Jakub