sh: Update unexpected empty split condition
authorKewen Lin <linkw@linux.ibm.com>
Fri, 28 May 2021 05:21:14 +0000 (00:21 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Sat, 5 Jun 2021 11:41:29 +0000 (06:41 -0500)
gcc/ChangeLog:

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

gcc/config/sh/sh.md

index e3af9ae..93ee7c9 100644 (file)
    (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)))])