Re: [PATCH] LoongArch: Fix up memcpy-vec-3.c test case
On Sat, 2023-09-09 at 16:21 +0800, chenglulu wrote: > LGTM! Pushed r14-3821. > 在 2023/9/9 下午4:20, Xi Ruoyao 写道: > > 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. -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University
Re: [PATCH] LoongArch: Fix up memcpy-vec-3.c test case
LGTM! 在 2023/9/9 下午4:20, Xi Ruoyao 写道: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c index 233ed215078..db2ea510b09 100644 --- a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c +++ b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c @@ -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); }
[PATCH] LoongArch: Fix up memcpy-vec-3.c test case
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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c index 233ed215078..db2ea510b09 100644 --- a/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c +++ b/gcc/testsuite/gcc.target/loongarch/memcpy-vec-3.c @@ -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); } -- 2.42.0