This is the mail archive of the
sid@sourceware.org
mailing list for the SID project.
[commit] regenerate cgen files
- From: Doug Evans <dje at sebabeach dot org>
- To: sid at sourceware dot org
- Date: Mon, 23 Nov 2009 01:26:13 -0800 (PST)
- Subject: [commit] regenerate cgen files
fyi, I checked this in.
[plus regenerated all the sid files]
2009-11-23 Doug Evans <dje@sebabeach.org>
* cgen-engine.h (EXTRACT_MSB0_SINT): Renamed from EXTRACT_MSB0_INT.
(EXTRACT_LSB0_SINT): Renamed from EXTRACT_LSB0_INT.
(EXTRACT_MSB0_LGSINT, EXTRACT_MSB0_LGUINT): Define.
(EXTRACT_LSB0_LGSINT, EXTRACT_LSB0_LGUINT): Define.
Index: cgen-engine.h
===================================================================
RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-engine.h,v
retrieving revision 1.7
diff -u -p -d -u -r1.7 cgen-engine.h
--- cgen-engine.h 7 May 2005 04:39:29 -0000 1.7
+++ cgen-engine.h 23 Nov 2009 08:39:10 -0000
@@ -582,8 +582,8 @@ public:
/* Treating the TOTAL least significant bits of VAL as a field, and
numbering its leftmost bit zero, return the LENGTH-bit subfield
whose leftmost bit is START.
- The '*INT' version sign-extends; the '*UINT' version doesn't. */
-#define EXTRACT_MSB0_INT(val, total, start, length) \
+ The '*SINT' version sign-extends; the '*UINT' version doesn't. */
+#define EXTRACT_MSB0_SINT(val, total, start, length) \
(((INT) (val) << ((sizeof (INT) * 8) - (total) + (start))) \
>> ((sizeof (INT) * 8) - (length)))
#define EXTRACT_MSB0_UINT(val, total, start, length) \
@@ -593,8 +593,8 @@ public:
/* Treating the TOTAL least significant bits of VAL as a field, and
numbering its rightmost bit zero, return the LENGTH-bit subfield
whose leftmost bit is START.
- The '*INT' version sign-extends; the '*UINT' version doesn't. */
-#define EXTRACT_LSB0_INT(val, total, start, length) \
+ The '*SINT' version sign-extends; the '*UINT' version doesn't. */
+#define EXTRACT_LSB0_SINT(val, total, start, length) \
(((INT) (val) << ((sizeof (INT) * 8) - (start) - 1)) \
>> ((sizeof (INT) * 8) - (length)))
#define EXTRACT_LSB0_UINT(val, total, start, length) \