]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Fix lsx-vshuf.c and lasx-xvshuf_b.c tests fail on LA664 [PR112611]
authorJiahao Xu <xujiahao@loongson.cn>
Wed, 29 Nov 2023 03:16:59 +0000 (11:16 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 8 Dec 2023 08:43:27 +0000 (16:43 +0800)
commit40366b89e9c8e727af70ecf7007cba6c51e4b7d2
treef37d0181e4edbcac875334044e9495ea11e089d4
parent22362d0f77574e7c06c47181a581bacefff9d030
LoongArch: Fix lsx-vshuf.c and lasx-xvshuf_b.c tests fail on LA664 [PR112611]

For [x]vshuf instructions, if the index value in the selector exceeds 63, it triggers
undefined behavior on LA464, but not on LA664. To ensure compatibility of these two
tests on both LA464 and LA664, we have modified both tests to ensure that the index
value in the selector does not exceed 63.

gcc/testsuite/ChangeLog:

PR target/112611
* gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c: Sure index less than 64.
* gcc.target/loongarch/vector/lsx/lsx-vshuf.c: Ditto.
gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvshuf_b.c
gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vshuf.c