https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100869
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Robin Dapp <rd...@gcc.gnu.org>: https://gcc.gnu.org/g:8cdebe087619329facf19ba849d4d489a9a933e2 commit r13-2248-g8cdebe087619329facf19ba849d4d489a9a933e2 Author: Robin Dapp <rd...@linux.ibm.com> Date: Fri Jun 24 15:15:14 2022 +0200 s390: Use vpdi and verllg in vec_reve. Swapping the two elements of a V2DImode or V2DFmode vector can be done with vpdi instead of using the generic way of loading a permutation mask from the literal pool and vperm. Analogous to the V2DI/V2DF case reversing the elements of a four-element vector can be done by first swapping the elements of the first doubleword as well the ones of the second one and subsequently rotate the doublewords by 32 bits. gcc/ChangeLog: PR target/100869 * config/s390/vector.md (@vpdi4_2<mode>): New pattern. (rotl<mode>3_di): New pattern. * config/s390/vx-builtins.md: Use vpdi and verll for reversing elements. gcc/testsuite/ChangeLog: * gcc.target/s390/zvector/vec-reve-int-long.c: New test.