From 9f9fba3664481a68c6b583a572f4fbbbdb33eca8 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Fri, 10 Mar 1995 23:17:34 +0000 Subject: [PATCH] (PROMOTE_MODE): Define. From-SVN: r9170 --- gcc/config/pa/pa.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 3b5f1324df0..5e2ba95c1d1 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -265,6 +265,17 @@ do { \ or endianess (e.g. VAX, x86). */ #define REAL_ARITHMETIC +/* Define this macro if it is advisable to hold scalars in registers + in a wider mode than that declared by the program. In such cases, + the value is constrained to be within the bounds of the declared + type, but kept valid in the wider mode. The signedness of the + extension may differ from that of the type. */ + +#define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE) \ + if (GET_MODE_CLASS (MODE) == MODE_INT \ + && GET_MODE_SIZE (MODE) < 4) \ + (MODE) = SImode; + /* Define this if most significant bit is lowest numbered in instructions that operate on numbered bit-fields. */ #define BITS_BIG_ENDIAN 1