mips.c: Various formatting fixes.
* config/mips/mips.c: Various formatting fixes. (override_options): Resync -mtune handling with gas. (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface. * config/mips/mips.h: More formatting fixes. (mips_abi): Move declaration. * config/mips/mips.md (exception_receiver): Add mode to unspec_volatile. From-SVN: r70327
This commit is contained in:
parent
00332c9f9f
commit
f1d5187ef5
4 changed files with 63 additions and 52 deletions
|
@ -1,3 +1,13 @@
|
|||
2003-08-11 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* config/mips/mips.c: Various formatting fixes.
|
||||
(override_options): Resync -mtune handling with gas.
|
||||
(mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
|
||||
* config/mips/mips.h: More formatting fixes.
|
||||
(mips_abi): Move declaration.
|
||||
* config/mips/mips.md (exception_receiver): Add mode to
|
||||
unspec_volatile.
|
||||
|
||||
2003-08-11 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
|
||||
|
|
|
@ -4690,9 +4690,6 @@ override_options ()
|
|||
if (mips_arch_string != 0)
|
||||
mips_set_architecture (mips_parse_cpu ("-march", mips_arch_string));
|
||||
|
||||
if (mips_tune_string != 0)
|
||||
mips_set_tune (mips_parse_cpu ("-mtune", mips_tune_string));
|
||||
|
||||
if (mips_isa_string != 0)
|
||||
{
|
||||
/* Handle -mipsN. */
|
||||
|
@ -4729,6 +4726,9 @@ override_options ()
|
|||
mips_arch_info->name);
|
||||
|
||||
/* Optimize for mips_arch, unless -mtune selects a different processor. */
|
||||
if (mips_tune_string != 0)
|
||||
mips_set_tune (mips_parse_cpu ("-mtune", mips_tune_string));
|
||||
|
||||
if (mips_tune_info == 0)
|
||||
mips_set_tune (mips_arch_info);
|
||||
|
||||
|
@ -9940,11 +9940,11 @@ mips_issue_rate ()
|
|||
{
|
||||
switch (mips_tune)
|
||||
{
|
||||
case PROCESSOR_R3000: return 1;
|
||||
case PROCESSOR_R5400: return 2;
|
||||
case PROCESSOR_R5500: return 2;
|
||||
case PROCESSOR_R7000: return 2;
|
||||
case PROCESSOR_R9000: return 2;
|
||||
case PROCESSOR_R5400:
|
||||
case PROCESSOR_R5500:
|
||||
case PROCESSOR_R7000:
|
||||
case PROCESSOR_R9000:
|
||||
return 2;
|
||||
|
||||
default:
|
||||
return 1;
|
||||
|
|
|
@ -114,6 +114,7 @@ extern enum cmp_type branch_type; /* what type of branch to use */
|
|||
extern enum processor_type mips_arch; /* which cpu to codegen for */
|
||||
extern enum processor_type mips_tune; /* which cpu to schedule for */
|
||||
extern int mips_isa; /* architectural level */
|
||||
extern int mips_abi; /* which ABI to use */
|
||||
extern int mips16_hard_float; /* mips16 without -msoft-float */
|
||||
extern int mips_entry; /* generate entry/exit for mips16 */
|
||||
extern const char *mips_arch_string; /* for -march=<xxx> */
|
||||
|
@ -976,8 +977,6 @@ extern const struct mips_cpu_info *mips_tune_info;
|
|||
|
||||
#define SUBTARGET_TARGET_SWITCHES
|
||||
|
||||
extern int mips_abi;
|
||||
|
||||
#ifndef MIPS_ABI_DEFAULT
|
||||
#define MIPS_ABI_DEFAULT ABI_32
|
||||
#endif
|
||||
|
@ -1223,7 +1222,9 @@ extern int mips_abi;
|
|||
#define INCOMING_RETURN_ADDR_RTX gen_rtx_REG (VOIDmode, GP_REG_FIRST + 31)
|
||||
|
||||
/* Describe how we implement __builtin_eh_return. */
|
||||
#define EH_RETURN_DATA_REGNO(N) ((N) < (TARGET_MIPS16 ? 2 : 4) ? (N) + GP_ARG_FIRST : INVALID_REGNUM)
|
||||
#define EH_RETURN_DATA_REGNO(N) \
|
||||
((N) < (TARGET_MIPS16 ? 2 : 4) ? (N) + GP_ARG_FIRST : INVALID_REGNUM)
|
||||
|
||||
#define EH_RETURN_STACKADJ_RTX gen_rtx_REG (Pmode, GP_REG_FIRST + 3)
|
||||
|
||||
/* Offsets recorded in opcodes are a multiple of this alignment factor.
|
||||
|
|
|
@ -8453,7 +8453,7 @@ ld\\t%2,%1-%S1(%2)\;daddu\\t%2,%2,$31\\n\\t%*j\\t%2%/"
|
|||
|
||||
(define_insn "exception_receiver"
|
||||
[(set (reg:SI 28)
|
||||
(unspec_volatile [(const_int 0)] UNSPEC_EH_RECEIVER))]
|
||||
(unspec_volatile:SI [(const_int 0)] UNSPEC_EH_RECEIVER))]
|
||||
"TARGET_ABICALLS && (mips_abi == ABI_32 || mips_abi == ABI_O64)"
|
||||
{ return mips_restore_gp (operands); }
|
||||
[(set_attr "type" "load")
|
||||
|
|
Loading…
Add table
Reference in a new issue