https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121426

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |avr
           Keywords|                            |ice-on-valid-code,
                   |                            |internal-improvement, ra
                 CC|                            |stefansf at gcc dot gnu.org

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
With the patch, the avr.md::divmodhi4 insn reads like this:

(define_insn_and_split "divmodhi4"
  [(set (match_operand:HI 0 "register_operand"        "={r22}")
        (div:HI (match_operand:HI 1 "register_operand" "{r24}")
                (match_operand:HI 2 "register_operand" "{r22}")))
   (set (match_operand:HI 3 "register_operand"        "={r24}")
        (mod:HI (match_dup 1)
                (match_dup 2)))
   (clobber (match_scratch:HI 4                       "={r26}"))
   (clobber (match_scratch:QI 5                       "={r21}"))]
  ""
  "#"
  "&& reload_completed"
  [(scratch)]
  { DONE_ADD_CCC })

Reply via email to