]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: testsuite: Fix pr112325.c and pr117888-1.c.
authorLulu Cheng <chenglulu@loongson.cn>
Mon, 3 Mar 2025 08:52:43 +0000 (16:52 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Mon, 10 Mar 2025 03:59:58 +0000 (11:59 +0800)
By default, vectorization is not enabled on LoongArch,
resulting in the failure of these two test cases.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/pr112325.c: Add the vector compilation
option '-mlsx' for LoongArch.
* gcc.dg/vect/pr117888-1.c: Likewise.

gcc/testsuite/gcc.dg/vect/pr112325.c
gcc/testsuite/gcc.dg/vect/pr117888-1.c

index 143903beab209366ae04bc504b5b4334b5eb39c7..8689fbfe092d04272ac13ab431c1dfa945dd5b6f 100644 (file)
@@ -4,6 +4,7 @@
 /* { dg-require-effective-target vect_shift } */
 /* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */
 /* { dg-additional-options "--param max-completely-peeled-insns=200" { target powerpc64*-*-* } } */
+/* { dg-additional-options "-mlsx" { target loongarch64-*-* } } */
 
 typedef unsigned short ggml_fp16_t;
 static float table_f32_f16[1 << 16];
index 4796a7c83c16f569dc5e974ef053a3dfd57c961e..0b31fcdc423b24ab3911a7a8fd18c4c4138990bc 100644 (file)
@@ -4,6 +4,7 @@
 /* { dg-require-effective-target vect_shift } */
 /* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */
 /* { dg-additional-options "--param max-completely-peeled-insns=200" { target powerpc64*-*-* } } */
+/* { dg-additional-options "-mlsx" { target loongarch64-*-* } } */
 
 typedef unsigned short ggml_fp16_t;
 static float table_f32_f16[1 << 16];