This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Attempting to add udivmodsi4 for ColdFire.


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]