public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] LoongArch: Fix up memcpy-vec-3.c test case
@ 2023-09-09  8:20 Xi Ruoyao
  2023-09-09  8:21 ` chenglulu
  0 siblings, 1 reply; 3+ messages in thread
From: Xi Ruoyao @ 2023-09-09  8:20 UTC (permalink / raw)
  To: gcc-patches; +Cc: chenglulu, i, xuchenghua, 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); }
-- 
2.42.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] LoongArch: Fix up memcpy-vec-3.c test case
  2023-09-09  8:20 [PATCH] LoongArch: Fix up memcpy-vec-3.c test case Xi Ruoyao
@ 2023-09-09  8:21 ` chenglulu
  2023-09-09  9:59   ` Xi Ruoyao
  0 siblings, 1 reply; 3+ messages in thread
From: chenglulu @ 2023-09-09  8:21 UTC (permalink / raw)
  To: Xi Ruoyao, gcc-patches; +Cc: i, xuchenghua

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); }


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] LoongArch: Fix up memcpy-vec-3.c test case
  2023-09-09  8:21 ` chenglulu
@ 2023-09-09  9:59   ` Xi Ruoyao
  0 siblings, 0 replies; 3+ messages in thread
From: Xi Ruoyao @ 2023-09-09  9:59 UTC (permalink / raw)
  To: chenglulu, gcc-patches; +Cc: i, xuchenghua

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 <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-09  9:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09  8:20 [PATCH] LoongArch: Fix up memcpy-vec-3.c test case Xi Ruoyao
2023-09-09  8:21 ` chenglulu
2023-09-09  9:59   ` Xi Ruoyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).