[gcc r14-6909] LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file.

LuluCheng chenglulu@gcc.gnu.org
Thu Jan 4 06:20:37 GMT 2024


https://gcc.gnu.org/g:49b2387b7d746d23b791f4daeb755bf1e35abe3e

commit r14-6909-g49b2387b7d746d23b791f4daeb755bf1e35abe3e
Author: chenxiaolong <chenxiaolong@loongson.cn>
Date:   Fri Dec 29 09:45:15 2023 +0800

    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.

Diff:
---
 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 1a7b0e86f8b..4b846204a65 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


More information about the Gcc-cvs mailing list