Define EXTEND15().

This commit is contained in:
Andrew Cagney 1998-04-15 06:45:19 +00:00
parent e50f526e68
commit 7acc4e98d2
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,8 @@ Tue Apr 14 18:49:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
* sim-bits.h (EXTEND4): Define.
(EXTEND4): Ditto.
(EXTEND15): 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

View File

@ -461,6 +461,7 @@ INLINE_SIM_BITS(unsigned_word) MSINSERTED (unsigned_word val, int start, int sto
#define EXTEND4(X) (LSSEXT ((X), 3))
#define EXTEND5(X) (LSSEXT ((X), 4))
#define EXTEND8(X) ((signed_word)(signed8)(X))
#define EXTEND15(X) (LSSEXT ((X), 14))
#define EXTEND16(X) ((signed_word)(signed16)(X))
#define EXTEND32(X) ((signed_word)(signed32)(X))
#define EXTEND64(X) ((signed_word)(signed64)(X))