public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v1] LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file.
@ 2023-12-29  1:45 chenxiaolong
  2024-01-04  6:21 ` chenglulu
  0 siblings, 1 reply; 2+ messages in thread
From: chenxiaolong @ 2023-12-29  1:45 UTC (permalink / raw)
  To: gcc-patches; +Cc: xry111, i, xuchenghua, chenglulu, chenxiaolong

After implementing the cost model on the LoongArch architecture, the GCC
compiler code has this feature turned on by default, which causes the
lasx-xvstelm.c file test to fail. Through analysis, this test case can
generate vectorization instructions required for detection only after
disabling the functionality of the cost model with the "-fno-vect-cost-model"
compilation option.

gcc/testsuite/ChangeLog:

	* gcc.target/loongarch/vector/lasx/lasx-xvstelm.c:Add compile
	option "-fno-vect-cost-model" to dg-options.
---
 gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
index 1a7b0e86f8b..4b846204a65 100644
--- a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
+++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -mlasx" } */
+/* { dg-options "-O3 -mlasx -fno-vect-cost-model" } */
 /* { dg-final { scan-assembler-times "xvstelm.w" 8} } */
 
 #define LEN 256
-- 
2.20.1


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

* Re:[pushed] [PATCH v1] LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file.
  2023-12-29  1:45 [PATCH v1] LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file chenxiaolong
@ 2024-01-04  6:21 ` chenglulu
  0 siblings, 0 replies; 2+ messages in thread
From: chenglulu @ 2024-01-04  6:21 UTC (permalink / raw)
  To: chenxiaolong, gcc-patches; +Cc: xry111, i, xuchenghua

Pushed to r14-6909.

在 2023/12/29 上午9:45, chenxiaolong 写道:
> After implementing the cost model on the LoongArch architecture, the GCC
> compiler code has this feature turned on by default, which causes the
> lasx-xvstelm.c file test to fail. Through analysis, this test case can
> generate vectorization instructions required for detection only after
> disabling the functionality of the cost model with the "-fno-vect-cost-model"
> compilation option.
>
> gcc/testsuite/ChangeLog:
>
> 	* gcc.target/loongarch/vector/lasx/lasx-xvstelm.c:Add compile
> 	option "-fno-vect-cost-model" to dg-options.
> ---
>   gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
> index 1a7b0e86f8b..4b846204a65 100644
> --- a/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
> +++ b/gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvstelm.c
> @@ -1,5 +1,5 @@
>   /* { dg-do compile } */
> -/* { dg-options "-O3 -mlasx" } */
> +/* { dg-options "-O3 -mlasx -fno-vect-cost-model" } */
>   /* { dg-final { scan-assembler-times "xvstelm.w" 8} } */
>   
>   #define LEN 256


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

end of thread, other threads:[~2024-01-04  6:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29  1:45 [PATCH v1] LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file chenxiaolong
2024-01-04  6:21 ` chenglulu

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).