diff mbox series

[05/11] h8300: Update unexpected empty split condition

Message ID 067df36fba04c5f9d76f3ee25b1a74fe7e038283.1622179420.git.linkw@linux.ibm.com
State New
Headers show
Series Fix up some unexpected empty split conditions | expand

Commit Message

Kewen.Lin June 2, 2021, 5:04 a.m. UTC
gcc/ChangeLog:

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

Comments

Jeff Law June 2, 2021, 5:10 p.m. UTC | #1
On 6/1/2021 11:04 PM, Kewen Lin wrote:
> gcc/ChangeLog:
>
> 	* config/h8300/combiner.md (*andsi3_lshiftrt_n_sb): Fix empty split
> 	condition.
Hold off on this.  We may need a stronger condition in there and that's 
something I'm in the process of cleaning up in the H8 port.




jeff
diff mbox series

Patch

diff --git a/gcc/config/h8300/combiner.md b/gcc/config/h8300/combiner.md
index 20e19da0419..e31bd507a6f 100644
--- a/gcc/config/h8300/combiner.md
+++ b/gcc/config/h8300/combiner.md
@@ -271,7 +271,7 @@  (define_insn_and_split "*andsi3_lshiftrt_n_sb"
   "exact_log2 (INTVAL (operands[3])) < 16
    && INTVAL (operands[2]) + exact_log2 (INTVAL (operands[3])) == 31"
   "#"
-  ""
+  "&& 1"
   [(parallel [(set (match_dup 0)
 		   (and:SI (lshiftrt:SI (match_dup 1) (match_dup 2))
 			   (match_dup 3)))