This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
[Patch][RFA]: New cgen operation: ADDCFDI
- To: cgen at sources dot redhat dot com, sid at sources dot redhat dot com
- Subject: [Patch][RFA]: New cgen operation: ADDCFDI
- From: Dave Brolley <brolley at redhat dot com>
- Date: Thu, 12 Jul 2001 14:23:46 -0400
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));