Commit ca97b221 by Richard Sandiford Committed by Andrew Pinski

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
parent c141b97e
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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment