From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Brolley To: cgen@sources.redhat.com, sid@sources.redhat.com Subject: Re: [Patch][RFA]: New cgen operation: ADDCFDI Date: Fri, 13 Jul 2001 14:08:00 -0000 Message-id: <3B4F6364.F261DEDB@redhat.com> References: <3B4DEB32.9050104@redhat.com> X-SW-Source: 2001-q3/msg00012.html 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 > > * 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));