]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file.
authorchenxiaolong <chenxiaolong@loongson.cn>
Fri, 29 Dec 2023 01:45:15 +0000 (09:45 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 4 Jan 2024 06:20:11 +0000 (14:20 +0800)
commit49b2387b7d746d23b791f4daeb755bf1e35abe3e
tree9d9fa974444af72ad69c35c8e02a606daa98727d
parentcb666ded97fca46cacfeb6d86cec176158104f16
LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file.

After implementing the cost model on the LoongArch architecture, the GCC
compiler code has this feature turned on by default, which causes the
lasx-xvstelm.c file test to fail. Through analysis, this test case can
generate vectorization instructions required for detection only after
disabling the functionality of the cost model with the "-fno-vect-cost-model"
compilation option.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/vector/lasx/lasx-xvstelm.c:Add compile
option "-fno-vect-cost-model" to dg-options.
gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c