This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Attempting to add udivmodsi4 for ColdFire.
- From: Richard Henderson <rth at redhat dot com>
- To: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 7 Mar 2002 16:22:08 -0800
- Subject: Re: Attempting to add udivmodsi4 for ColdFire.
- References: <200203080013.g280Du726644@hyper.wm.sps.mot.com>
On Thu, Mar 07, 2002 at 07:13:56PM -0500, Peter Barada wrote:
> (define_expand "udivmodsi4"
> [(set (match_operand:SI 0 "nonimmediate_operand" "")
> (udiv:SI (match_operand:SI 1 "nonimmediate_operand" "")
> (match_operand:SI 2 "general_src_operand" "")))
> (set (match_operand:SI 3 "nonimmediate_operand" "")
> (umod:SI (match_dup 1) (match_dup 2)))]
> "TARGET_68020 || TARGET_CF_HWDIV"
> "")
define_expand is different than define_insn. You need to
wrap this pattern in a parallel.
r~