2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
Andrew Pinski <apinski@cavium.com>
* config/mips/mips.h (CASE_VECTOR_MODE): For not
TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
(CASE_VECTOR_SHORTEN_MODE): Likewise.
Co-Authored-By: Andrew Pinski <apinski@cavium.com>
From-SVN: r190670
+2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
+ Andrew Pinski <apinski@cavium.com>
+
+ * config/mips/mips.h (CASE_VECTOR_MODE): For not
+ TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
+ (CASE_VECTOR_SHORTEN_MODE): Likewise.
+
2012-08-25 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.h (FP_REG_P): Remove macro.
#define JUMP_TABLES_IN_TEXT_SECTION TARGET_MIPS16_SHORT_JUMP_TABLES
-#define CASE_VECTOR_MODE SImode
+#define CASE_VECTOR_MODE (TARGET_MIPS16_SHORT_JUMP_TABLES ? SImode : ptr_mode)
/* Only use short offsets if their range will not overflow. */
#define CASE_VECTOR_SHORTEN_MODE(MIN, MAX, BODY) \
- (TARGET_MIPS16_SHORT_JUMP_TABLES && ((MIN) >= -32768 && (MAX) < 32768) \
- ? HImode : SImode)
+ (!TARGET_MIPS16_SHORT_JUMP_TABLES ? ptr_mode \
+ : ((MIN) >= -32768 && (MAX) < 32768) ? HImode \
+ : SImode)
#define CASE_VECTOR_PC_RELATIVE TARGET_MIPS16_SHORT_JUMP_TABLES