From: Andrew Cagney Date: Wed, 15 Apr 1998 00:06:50 +0000 (+0000) Subject: Define EXTEND4() and EXTEND5(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93f967158fdb53e468173f0a4947b3dd06442983;p=binutils-gdb.git Define EXTEND4() and EXTEND5(). --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index f5894163e2a..a026ab1e009 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 14 18:49:31 1998 Andrew Cagney + + * sim-bits.h (EXTEND4): Define. + (EXTEND4): Ditto. + Tue Apr 14 16:31:35 1998 John Metzler * 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 1433c4c4071..96147e41fc1 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))