[gcc r17-2780] LoongArch: Adjust testcase for lasx-vec-construct-opt.c

Chenghua Xu via Gcc-cvs <[email protected]> Wed, 29 Jul 2026 08:49:13 +0000 (GMT)
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:b097542b9cac2a1130ca986e183aba67d3aee0a3

commit r17-2780-gb097542b9cac2a1130ca986e183aba67d3aee0a3
Author: zhaozhou <[email protected]>
Date:   Tue Jul 21 19:12:28 2026 +0800

    LoongArch: Adjust testcase for lasx-vec-construct-opt.c
    
    Follow up to r17-2354-g10f6223d833, which changed the behavior of
    vec_duplicate. The LoongArch architecture testcase need adjustments to
    accommodate this change.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/loongarch/vector/lasx/lasx-vec-construct-opt.c:
            Adjust testcase.

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

diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vec-construct-opt.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vec-construct-opt.c
index 487816a483f2..1af9227d0109 100644
--- a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vec-construct-opt.c
+++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-vec-construct-opt.c
@@ -26,7 +26,7 @@ vec_construct_v4i64 ()
 /* Remove some unnecessary vinsgr2vr.w as the corresponding elements
    have already been set.  */
 /* { dg-final { scan-assembler-not "v8i32:.*\tvinsgr2vr\\.w.*v8i32" } } */
-/* { dg-final { scan-assembler-times "v8i32:.*\txvreplgr2vr\\.w.*v8i32" 1 } } */
+/* { dg-final { scan-assembler-times "v8i32:.*\txvldrepl\\.w.*v8i32" 1 } } */
 v8i32
 vec_construct_v8i32 ()
 {