diff options
author | Jiahao Xu <xujiahao@loongson.cn> | 2023-11-29 11:16:59 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2023-12-08 16:43:27 +0800 |
commit | 40366b89e9c8e727af70ecf7007cba6c51e4b7d2 (patch) | |
tree | f37d0181e4edbcac875334044e9495ea11e089d4 /gcc/tree.cc | |
parent | 22362d0f77574e7c06c47181a581bacefff9d030 (diff) | |
download | gcc-40366b89e9c8e727af70ecf7007cba6c51e4b7d2.zip gcc-40366b89e9c8e727af70ecf7007cba6c51e4b7d2.tar.gz gcc-40366b89e9c8e727af70ecf7007cba6c51e4b7d2.tar.bz2 |
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.
Diffstat (limited to 'gcc/tree.cc')
0 files changed, 0 insertions, 0 deletions