https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108807
--- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> --- Created attachment 54478 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54478&action=edit untested patch The lvsr and lvsl for generating permutation control vectors only works for LE as the element ordering is different on LE and BE. The proposed patch is to fix gen function for generating permutation control vectors by considering endianness. It can fix the exposed failures on vsx-builtin-{9,10,11,14,16,18}d.c, and a full testing is ongoing.