[Bug target/122695] LoongArch: Wrong code with __builtin_shuffle and -mlasx
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 20 07:25:49 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122695
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Xi Ruoyao <xry111@gcc.gnu.org>:
https://gcc.gnu.org/g:f168d62bc552176572832bf129c9b392aeff46ad
commit r16-5440-gf168d62bc552176572832bf129c9b392aeff46ad
Author: Xi Ruoyao <xry111@xry111.site>
Date: Sun Nov 16 00:30:43 2025 +0800
LoongArch: Fix wrong code from loongarch_expand_vec_perm_1 [PR 122695]
PR target/122695
gcc/
* config/loongarch/loongarch.cc (loongarch_expand_vec_perm_1):
Simplify and fix the logic preventing the xvshuf.* unpredictable
behavior.
gcc/testsuite/
* gcc.target/loongarch/pr122695-1.c: New test.
* gcc.target/loongarch/pr122695-2.c: New test.
More information about the Gcc-bugs
mailing list