re PR target/54236 ([SH] Improve addc and subc insn utilization)
[gcc.git] / gcc / config / sh / sh.md
index 3b669928a201ebda44217ec2e493bd100c75f344..2d95b9c1e22d179d302cfd89c25cc493e1cecdb0 100644 (file)
        (and:SI (plus:SI (match_operand:SI 1 "arith_reg_operand")
                         (const_int 1))
                (const_int -2)))]
-  "TARGET_SH1 && !TARGET_SH2A && can_create_pseudo_p ()"
+  "TARGET_SH1 && !TARGET_SH2A && can_create_pseudo_p ()
+   && !reg_overlap_mentioned_p (operands[0], operands[1])"
   "#"
   "&& 1"
   [(set (match_dup 0) (const_int -2))