Re: divmod pattern question

2018-06-20 Thread Paul Koning
> On Jun 20, 2018, at 1:16 AM, Jeff Law wrote: > > On 06/19/2018 12:55 PM, Paul Koning wrote: >> Gentlepeople, >> >> I have a two-operand divide instruction that takes a double length dividend >> in a register pair, and produces the quotient in the first register and >> remainder in the

Re: divmod pattern question

2018-06-20 Thread Andreas Schwab
On Jun 19 2018, Paul Koning wrote: > I have a two-operand divide instruction that takes a double length dividend > in a register pair, and produces the quotient in the first register and > remainder in the second. That's looks like the m68k div insn. Andreas. -- Andreas Schwab, SUSE Labs,

Re: divmod pattern question

2018-06-19 Thread Jeff Law
On 06/19/2018 12:55 PM, Paul Koning wrote: > Gentlepeople, > > I have a two-operand divide instruction that takes a double length dividend > in a register pair, and produces the quotient in the first register and > remainder in the second. > > How do I write a divmod pattern for that? The

divmod pattern question

2018-06-19 Thread Paul Koning
Gentlepeople, I have a two-operand divide instruction that takes a double length dividend in a register pair, and produces the quotient in the first register and remainder in the second. How do I write a divmod pattern for that? The quotient is easy enough, I write a match_operand for that