mips.h (CASE_VECTOR_MODE): For not TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.

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
This commit is contained in:
Richard Sandiford 2012-08-25 21:33:15 +00:00 committed by Andrew Pinski
parent c141b97e70
commit ca97b221ce
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -2336,12 +2336,13 @@ typedef struct mips_args {
#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