Attempting to add udivmodsi4 for ColdFire.
Richard Henderson
rth@redhat.com
Thu Mar 7 16:22:00 GMT 2002
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~
More information about the Gcc
mailing list