diff options
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-bits.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f589416..a026ab1 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com> + + * sim-bits.h (EXTEND4): Define. + (EXTEND4): Ditto. + Tue Apr 14 16:31:35 1998 John Metzler <jmetzler@cygnus.com> * sim-memopt.c (parse_addr): Sunos 4.5 does not hane strtol diff --git a/sim/common/sim-bits.h b/sim/common/sim-bits.h index 1433c4c..96147e4 100644 --- a/sim/common/sim-bits.h +++ b/sim/common/sim-bits.h @@ -458,6 +458,8 @@ INLINE_SIM_BITS(unsigned_word) MSINSERTED (unsigned_word val, int start, int sto /* Sign extend the quantity to the targets natural word size */ +#define EXTEND4(X) (LSSEXT ((X), 3)) +#define EXTEND5(X) (LSSEXT ((X), 4)) #define EXTEND8(X) ((signed_word)(signed8)(X)) #define EXTEND16(X) ((signed_word)(signed16)(X)) #define EXTEND32(X) ((signed_word)(signed32)(X)) |