aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gnu.org>1995-03-10 23:17:34 +0000
committerTorbjorn Granlund <tege@gnu.org>1995-03-10 23:17:34 +0000
commit9f9fba3664481a68c6b583a572f4fbbbdb33eca8 (patch)
tree39b6c4b4f4cc935ce0061e1a39d570b9a38c35dc
parent4255220d922400aeb4c3da7b627b716c908d9a4e (diff)
downloadgcc-9f9fba3664481a68c6b583a572f4fbbbdb33eca8.zip
gcc-9f9fba3664481a68c6b583a572f4fbbbdb33eca8.tar.gz
gcc-9f9fba3664481a68c6b583a572f4fbbbdb33eca8.tar.bz2
(PROMOTE_MODE): Define.
From-SVN: r9170
-rw-r--r--gcc/config/pa/pa.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 3b5f132..5e2ba95 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