This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: [Patch][RFA]: New cgen operation: ADDCFDI
- To: cgen at sources dot redhat dot com, sid at sources dot redhat dot com
- Subject: Re: [Patch][RFA]: New cgen operation: ADDCFDI
- From: Dave Brolley <brolley at redhat dot com>
- Date: Fri, 13 Jul 2001 17:08:52 -0400
- References: <3B4DEB32.9050104@redhat.com>
Approved by fche and committed.
Dave
Dave Brolley wrote:
> Hi,
>
> I needed to use (add-cflag DI arg1 arg2) in an internal port. This patch
> adds that operation to cgen.
>
> OK to commit?
>
> Dave
>
> ------------------------------------------------------------------------
> 2001-07-12 Dave Brolley <brolley@redhat.com>
>
> * cgen-ops.h (ADDCFDI): New function.
>
> ------------------------------------------------------------------------
> Index: sid/component/cgen-cpu/cgen-ops.h
> ===================================================================
> RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-ops.h,v
> retrieving revision 1.3
> diff -c -p -r1.3 cgen-ops.h
> *** cgen-ops.h 2001/01/10 20:26:43 1.3
> --- cgen-ops.h 2001/07/12 17:46:23
> *************** ADDCFSI (SI a, SI b, BI c)
> *** 389,394 ****
> --- 389,402 ----
> }
>
> inline BI
> + ADDCFDI (DI a, DI b, BI c)
> + {
> + DI tmp = ADDDI (a, ADDDI (b, c));
> + BI res = ((UDI) tmp < (UDI) a) || (c && tmp == a);
> + return res;
> + }
> +
> + inline BI
> ADDOFHI (HI a, HI b, BI c)
> {
> HI tmp = ADDHI (a, ADDHI (b, c));