2002-02-05 Chris Demetriou <cgd@broadcom.com>
authorChris Demetriou <cgd@google.com>
Tue, 5 Mar 2002 19:22:13 +0000 (19:22 +0000)
committerChris Demetriou <cgd@google.com>
Tue, 5 Mar 2002 19:22:13 +0000 (19:22 +0000)
        * sim-main.h (SIGNEXTEND): Remove.

sim/mips/ChangeLog
sim/mips/sim-main.h

index b261dbaa1e3158ccc720dbbec64d42674a2c2fbd..7d3eb9bd8d4fee71d5ee2f127e6f71a05a9d930c 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-05  Chris Demetriou  <cgd@broadcom.com>
+
+       * sim-main.h (SIGNEXTEND): Remove.
+
 2002-02-04  Chris Demetriou  <cgd@broadcom.com>
 
        * mips.igen: Remove gencode comment from top of file, fix
index 215a8161ff27b59b5386599894fefdc22265dd9d..8e8511fae9f02a8f7228a901d4579e0fa90cd516 100644 (file)
@@ -56,15 +56,6 @@ typedef unsigned64 uword64;
 #define WORD64(h,l)     ((word64)((SET64HI(h)|SET64LO(l))))
 #define UWORD64(h,l)     (SET64HI(h)|SET64LO(l))
 
-/* Sign-extend the given value (e) as a value (b) bits long. We cannot
-   assume the HI32bits of the operand are zero, so we must perform a
-   mask to ensure we can use the simple subtraction to sign-extend. */
-#define SIGNEXTEND(e,b) \
- ((unsigned_word) \
-  (((e) & ((uword64) 1 << ((b) - 1))) \
-   ? (((e) & (((uword64) 1 << (b)) - 1)) - ((uword64)1 << (b))) \
-   : ((e) & (((((uword64) 1 << ((b) - 1)) - 1) << 1) | 1))))
-
 /* Check if a value will fit within a halfword: */
 #define NOTHALFWORDVALUE(v) ((((((uword64)(v)>>16) == 0) && !((v) & ((unsigned)1 << 15))) || (((((uword64)(v)>>32) == 0xFFFFFFFF) && ((((uword64)(v)>>16) & 0xFFFF) == 0xFFFF)) && ((v) & ((unsigned)1 << 15)))) ? (1 == 0) : (1 == 1))
 
This page took 0.039608 seconds and 4 git commands to generate.