]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
LoongArch: Fix up memcpy-vec-3.c test case
authorXi Ruoyao <xry111@xry111.site>
Sat, 9 Sep 2023 08:18:06 +0000 (16:18 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 9 Sep 2023 09:51:57 +0000 (17:51 +0800)
The generic code will split 16-byte copy into two 8-byte copies, so the
vector code wouldn't be used even if -mno-strict-align.  This
contradicted with the purpose of this test case.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/memcpy-vec-3.c: Increase the amount of
copied bytes to 32.

gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c

index 233ed215078dcc2c15db86d9a448261d7aa3d22b..db2ea510b09f8af6f5916ba54e37230f5d9c1881 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-final { scan-assembler-not "vst" } } */
 
 extern char a[], b[];
-void test() { __builtin_memcpy(a, b, 16); }
+void test() { __builtin_memcpy(a, b, 32); }