Message ID | f1c0f459b510886ded5cd45ac2ed28e7b7ccc0e6.1622179420.git.linkw@linux.ibm.com |
---|---|
State | New |
Headers | show |
Series | Fix up some unexpected empty split conditions | expand |
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
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)))])