diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-12-13 09:54:15 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-12-13 09:54:15 +0000 |
commit | ce9d566844297f5d36887a0a19913fea8927e664 (patch) | |
tree | 64f41c1f3510f1b171d225b8444c21d8f00813be /gcc/config/mt/mt.c | |
parent | 93fc8073fc425f684cc58ac301464c1e90f2770d (diff) | |
download | gcc-ce9d566844297f5d36887a0a19913fea8927e664.zip gcc-ce9d566844297f5d36887a0a19913fea8927e664.tar.gz gcc-ce9d566844297f5d36887a0a19913fea8927e664.tar.bz2 |
t-mt (MULTILIB_OPTIONS): Add ms2
* config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
(MULTILIB_DIRNAMES): Add ms2. Prefix ms1 dirs with 'ms1'.
* config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
TARGET_MS1_64_001 appropriately.
(ms1_machine_reorg): Use TARGET_MS2.
From-SVN: r108477
Diffstat (limited to 'gcc/config/mt/mt.c')
-rw-r--r-- | gcc/config/mt/mt.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gcc/config/mt/mt.c b/gcc/config/mt/mt.c index 74a77e8..675ec2d 100644 --- a/gcc/config/mt/mt.c +++ b/gcc/config/mt/mt.c @@ -221,7 +221,7 @@ ms1_final_prescan_insn (rtx insn, ms1_nop_reasons = ""; /* ms2 constraints are dealt with in reorg. */ - if (ms1_cpu == PROCESSOR_MS2) + if (TARGET_MS2) return; /* Only worry about real instructions. */ @@ -257,7 +257,7 @@ ms1_final_prescan_insn (rtx insn, case TYPE_STORE: /* Avoid consecutive memory operation. */ if ((prev_attr == TYPE_LOAD || prev_attr == TYPE_STORE) - && ms1_cpu == PROCESSOR_MS1_64_001) + && TARGET_MS1_64_001) { ms1_nops_required = 1; ms1_nop_reasons = "consecutive mem ops"; @@ -279,8 +279,7 @@ ms1_final_prescan_insn (rtx insn, case TYPE_BRANCH: if (insn_dependent_p (prev_i, insn)) { - if (prev_attr == TYPE_ARITH - && ms1_cpu == PROCESSOR_MS1_64_001) + if (prev_attr == TYPE_ARITH && TARGET_MS1_64_001) { /* One cycle of delay between arith instructions and branch dependent on arith. */ @@ -291,7 +290,7 @@ ms1_final_prescan_insn (rtx insn, { /* Two cycles of delay are required between load and dependent branch. */ - if (ms1_cpu == PROCESSOR_MS1_64_001) + if (TARGET_MS1_64_001) ms1_nops_required = 2; else ms1_nops_required = 1; @@ -2465,13 +2464,13 @@ ms1_reorg_hazard (void) static void ms1_machine_reorg (void) { - if (cfun->machine->has_loops) + if (cfun->machine->has_loops && TARGET_MS2) ms1_reorg_loops (dump_file); if (ms1_flag_delayed_branch) dbr_schedule (get_insns (), dump_file); - if (ms1_cpu == PROCESSOR_MS2) + if (TARGET_MS2) ms1_reorg_hazard (); } |