]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: testsuite: Add loongarch support to slp-21.c.
authorchenxiaolong <chenxiaolong@loongson.cn>
Wed, 10 Jan 2024 07:25:21 +0000 (15:25 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Wed, 10 Jan 2024 12:17:04 +0000 (20:17 +0800)
The function of this test is to check that the compiler supports vectorization
using SLP and vec_{load/store/*}_lanes. However, vec_{load/store/*}_lanes are
not supported on LoongArch, such as the corresponding "st4/ld4" directives on
aarch64.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/slp-21.c: Add loongarch.

gcc/testsuite/gcc.dg/vect/slp-21.c

index 712a73b69d730fd27cb75d3ebb3624809317f841..5875168841428a5722630c6ae053d3c60d5772b3 100644 (file)
@@ -213,7 +213,7 @@ int main (void)
 
    Not all vect_perm targets support that, and it's a bit too specific to have
    its own effective-target selector, so we just test targets directly.  */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 4 "vect" { target { powerpc64*-*-* s390*-*-* } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target { vect_strided4 && { ! { powerpc64*-*-* s390*-*-* } } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 4 "vect" { target { powerpc64*-*-* s390*-*-* loongarch*-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target { vect_strided4 && { ! { powerpc64*-*-* s390*-*-* loongarch*-*-* } } } } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect"  { target { ! { vect_strided4 } } } } } */