Re: [PATCH] middle-end/110541 - VEC_PERM_EXPR documentation is off

2023-07-05 Thread Richard Biener via Gcc-patches
I don't remember the last rule. I thought the modulo did still apply. > (But the canonical form is to remove obvious modulo opportunities.) > > E.g. a VLA reverse-and-rotate pattern might have { N-2, N-3, N-4, ... }. > That will wrap at the final position to 2N-1, but that seems OK

Re: [PATCH] middle-end/110541 - VEC_PERM_EXPR documentation is off

2023-07-05 Thread Richard Sandiford via Gcc-patches
Richard Biener via Gcc-patches writes: > The following adjusts the tree.def documentation about VEC_PERM_EXPR > which wasn't adjusted when the restrictions of permutes with constant > mask were relaxed. I was going to complain about having two copies of the documentation, but then I realised that

[PATCH] middle-end/110541 - VEC_PERM_EXPR documentation is off

2023-07-04 Thread Richard Biener via Gcc-patches
The following adjusts the tree.def documentation about VEC_PERM_EXPR which wasn't adjusted when the restrictions of permutes with constant mask were relaxed. OK? Thanks, Richard. PR middle-end/110541 * tree.def (VEC_PERM_EXPR): Adjust documentation to reflect reality. ---