This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


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

Re: [Patch][RFA]: New cgen operation: ADDCFDI


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));


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