[10/11] sh: Update unexpected empty split condition

Message ID f1c0f459b510886ded5cd45ac2ed28e7b7ccc0e6.1622179420.git.linkw@linux.ibm.com
State New
Headers show
Series
  • Fix up some unexpected empty split conditions
Related show

Commit Message

Harald Anlauf via Gcc-patches June 2, 2021, 5:05 a.m.
gcc/ChangeLog:

	* config/sh/sh.md (doloop_end_split): Fix empty split condition.
---
 gcc/config/sh/sh.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

Comments

Oleg Endo June 2, 2021, 5:17 a.m. | #1
On Wed, 2021-06-02 at 00:05 -0500, Kewen Lin wrote:
> gcc/ChangeLog:

> 

> 	* config/sh/sh.md (doloop_end_split): Fix empty split condition.

> ---

>  gcc/config/sh/sh.md | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md

> index e3af9ae21c1..93ee7c9a7de 100644

> --- a/gcc/config/sh/sh.md

> +++ b/gcc/config/sh/sh.md

> @@ -6424,7 +6424,7 @@ (define_insn_and_split "doloop_end_split"

>     (clobber (reg:SI T_REG))]

>    "TARGET_SH2"

>    "#"

> -  ""

> +  "&& 1"

>    [(parallel [(set (reg:SI T_REG)

>  		   (eq:SI (match_dup 2) (const_int 1)))

>  	      (set (match_dup 0) (plus:SI (match_dup 2) (const_int -1)))])


This is OK (obvious).

Cheers,
Oleg

Patch

diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index e3af9ae21c1..93ee7c9a7de 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -6424,7 +6424,7 @@  (define_insn_and_split "doloop_end_split"
    (clobber (reg:SI T_REG))]
   "TARGET_SH2"
   "#"
-  ""
+  "&& 1"
   [(parallel [(set (reg:SI T_REG)
 		   (eq:SI (match_dup 2) (const_int 1)))
 	      (set (match_dup 0) (plus:SI (match_dup 2) (const_int -1)))])