RISC-V: Fix unreachable test code for init repeat sequence.

Message ID 20230531002933.1056949-1-pan2.li@intel.com
State Unresolved
Headers
Series RISC-V: Fix unreachable test code for init repeat sequence. |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Li, Pan2 via Gcc-patches May 31, 2023, 12:29 a.m. UTC
  From: Pan Li <pan2.li@intel.com>

This patch fix one unreachable test code, which is for debugging purpose
without cleanup before commit.

Signed-off-by: Pan Li <pan2.li@intel.com>

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c:
	Remove debug code.

Signed-off-by: Pan Li <pan2.li@intel.com>
---
 .../riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c     | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Kito Cheng May 31, 2023, 12:50 a.m. UTC | #1
OK

On Wed, May 31, 2023 at 8:29 AM <pan2.li@intel.com> wrote:
>
> From: Pan Li <pan2.li@intel.com>
>
> This patch fix one unreachable test code, which is for debugging purpose
> without cleanup before commit.
>
> Signed-off-by: Pan Li <pan2.li@intel.com>
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c:
>         Remove debug code.
>
> Signed-off-by: Pan Li <pan2.li@intel.com>
> ---
>  .../riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c     | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c
> index 1931d3f5fa0..f7c2fdd040d 100644
> --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c
> +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c
> @@ -12,7 +12,6 @@ main ()
>    double v_vnx8df[sizeof (vnx8df) / sizeof (double)];
>    f_vnx8df (a, b, v_vnx8df);
>
> -  return 0;
>    for (int i = 0; i < sizeof (vnx8df) / sizeof (double); i++)
>      {
>        if (i % 2 == 0)
> --
> 2.34.1
>
  
Li, Pan2 via Gcc-patches May 31, 2023, 1:02 a.m. UTC | #2
Committed, thanks Kito.

Pan

-----Original Message-----
From: Kito Cheng <kito.cheng@sifive.com> 
Sent: Wednesday, May 31, 2023 8:50 AM
To: Li, Pan2 <pan2.li@intel.com>
Cc: gcc-patches@gcc.gnu.org; juzhe.zhong@rivai.ai; Wang, Yanzhang <yanzhang.wang@intel.com>; daisukeokahassou@gmail.com
Subject: Re: [PATCH] RISC-V: Fix unreachable test code for init repeat sequence.

OK

On Wed, May 31, 2023 at 8:29 AM <pan2.li@intel.com> wrote:
>
> From: Pan Li <pan2.li@intel.com>
>
> This patch fix one unreachable test code, which is for debugging 
> purpose without cleanup before commit.
>
> Signed-off-by: Pan Li <pan2.li@intel.com>
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c:
>         Remove debug code.
>
> Signed-off-by: Pan Li <pan2.li@intel.com>
> ---
>  .../riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c     | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git 
> a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-seq
> uence-run-1.c 
> b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-seq
> uence-run-1.c
> index 1931d3f5fa0..f7c2fdd040d 100644
> --- 
> a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-seq
> uence-run-1.c
> +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat
> +++ -sequence-run-1.c
> @@ -12,7 +12,6 @@ main ()
>    double v_vnx8df[sizeof (vnx8df) / sizeof (double)];
>    f_vnx8df (a, b, v_vnx8df);
>
> -  return 0;
>    for (int i = 0; i < sizeof (vnx8df) / sizeof (double); i++)
>      {
>        if (i % 2 == 0)
> --
> 2.34.1
>
  

Patch

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c
index 1931d3f5fa0..f7c2fdd040d 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-run-1.c
@@ -12,7 +12,6 @@  main ()
   double v_vnx8df[sizeof (vnx8df) / sizeof (double)];
   f_vnx8df (a, b, v_vnx8df);
 
-  return 0;
   for (int i = 0; i < sizeof (vnx8df) / sizeof (double); i++)
     {
       if (i % 2 == 0)