aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorchenxiaolong <chenxiaolong@loongson.cn>2023-12-29 09:45:15 +0800
committerLulu Cheng <chenglulu@loongson.cn>2024-01-04 14:20:11 +0800
commit49b2387b7d746d23b791f4daeb755bf1e35abe3e (patch)
tree9d9fa974444af72ad69c35c8e02a606daa98727d /gcc
parentcb666ded97fca46cacfeb6d86cec176158104f16 (diff)
downloadgcc-49b2387b7d746d23b791f4daeb755bf1e35abe3e.zip
gcc-49b2387b7d746d23b791f4daeb755bf1e35abe3e.tar.gz
gcc-49b2387b7d746d23b791f4daeb755bf1e35abe3e.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
index 1a7b0e8..4b84620 100644
--- a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
+++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O3 -mlasx" } */
+/* { dg-options "-O3 -mlasx -fno-vect-cost-model" } */
/* { dg-final { scan-assembler-times "xvstelm.w" 8} } */
#define LEN 256