aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/3000.md
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2004-07-12 05:21:29 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2004-07-12 05:21:29 +0000
commitf10107a18f1f702796c512611c6798e3eb5b56ac (patch)
tree8f0b7fa3547ea41407c7a2632b5bc34185cf60a8 /gcc/config/mips/3000.md
parent4c59781d99282440d92d89297e58a1c2223c0f0d (diff)
downloadgcc-f10107a18f1f702796c512611c6798e3eb5b56ac.zip
gcc-f10107a18f1f702796c512611c6798e3eb5b56ac.tar.gz
gcc-f10107a18f1f702796c512611c6798e3eb5b56ac.tar.bz2
mips.c (mips_use_dfa_pipeline_interface): Delete.
* config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1. * config/mips/3000.md: Add copyright notice. Remove automota and function units; use generic ones instead. Only define reservations for things that are different from generic.md. Extend each clause to include r3900. * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files. * config/mips/mips.md: Include them. Remove define_function_units. (alu, imuldiv): New automata and units. From-SVN: r84547
Diffstat (limited to 'gcc/config/mips/3000.md')
-rw-r--r--gcc/config/mips/3000.md88
1 files changed, 41 insertions, 47 deletions
diff --git a/gcc/config/mips/3000.md b/gcc/config/mips/3000.md
index 8c9a0d6..d033411 100644
--- a/gcc/config/mips/3000.md
+++ b/gcc/config/mips/3000.md
@@ -1,78 +1,72 @@
-;; DFA based pipeline description for the r3000
-;; This is a special pipeline - this is also the default schedule and
-;; so we need to schedule instructions that may not exist on the r2k/r3k.
+;; R3000 and TX39 pipeline description.
+;; Copyright (C) 2004 Free Software Foundation, Inc.
+;;
+;; This file is part of GCC.
-(define_automaton "r3k_alu,r3k_imuldiv")
+;; GCC is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published
+;; by the Free Software Foundation; either version 2, or (at your
+;; option) any later version.
-(define_cpu_unit "r3k_alu" "r3k_alu")
-(define_cpu_unit "r3k_imuldiv" "r3k_imuldiv")
+;; GCC is distributed in the hope that it will be useful, but WITHOUT
+;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+;; License for more details.
-(define_insn_reservation "r3k_generic" 1
- (and (eq_attr "cpu" "r3000")
- (eq_attr "type" "unknown,prefetch,prefetchx,condmove,const,arith,
- shift,slt,clz,trap,multi,nop"))
- "r3k_alu")
+;; You should have received a copy of the GNU General Public License
+;; along with GCC; see the file COPYING. If not, write to the
+;; Free Software Foundation, 59 Temple Place - Suite 330, Boston,
+;; MA 02111-1307, USA.
-(define_insn_reservation "r3k_load" 2
- (and (eq_attr "cpu" "r3000")
- (eq_attr "type" "load,fpload,fpidxload,xfer"))
- "r3k_alu")
-
-(define_insn_reservation "r3k_store" 1
- (and (eq_attr "cpu" "r3000")
- (eq_attr "type" "store,fpstore,fpidxstore"))
- "r3k_alu")
-(define_insn_reservation "r3k_branch" 1
- (and (eq_attr "cpu" "r3000")
- (eq_attr "type" "branch,jump,call"))
- "r3k_alu")
+;; This file overrides parts of generic.md. It is derived from the
+;; old define_function_unit description.
-(define_insn_reservation "r3k_hilo" 1
- (and (eq_attr "cpu" "r3000")
- (eq_attr "type" "mfhilo,mthilo"))
- "r3k_imuldiv*3")
+(define_insn_reservation "r3k_load" 2
+ (and (eq_attr "cpu" "r3000,r3900")
+ (eq_attr "type" "load,fpload,fpidxload"))
+ "alu")
(define_insn_reservation "r3k_imul" 12
- (and (eq_attr "cpu" "r3000")
+ (and (eq_attr "cpu" "r3000,r3900")
(eq_attr "type" "imul,imadd"))
- "r3k_imuldiv*12")
+ "imuldiv*12")
(define_insn_reservation "r3k_idiv" 35
- (and (eq_attr "cpu" "r3000")
+ (and (eq_attr "cpu" "r3000,r3900")
(eq_attr "type" "idiv"))
- "r3k_imuldiv*35")
+ "imuldiv*35")
(define_insn_reservation "r3k_fmove" 1
- (and (eq_attr "cpu" "r3000")
- (eq_attr "type" "fabs,fneg,fmove,fcvt"))
- "r3k_alu")
+ (and (eq_attr "cpu" "r3000,r3900")
+ (eq_attr "type" "fabs,fneg,fmove"))
+ "alu")
(define_insn_reservation "r3k_fadd" 2
- (and (eq_attr "cpu" "r3000")
+ (and (eq_attr "cpu" "r3000,r3900")
(eq_attr "type" "fcmp,fadd"))
- "r3k_alu")
+ "alu")
(define_insn_reservation "r3k_fmul_single" 4
- (and (eq_attr "cpu" "r3000")
+ (and (eq_attr "cpu" "r3000,r3900")
(and (eq_attr "type" "fmul,fmadd")
(eq_attr "mode" "SF")))
- "r3k_alu")
+ "alu")
(define_insn_reservation "r3k_fmul_double" 5
- (and (eq_attr "cpu" "r3000")
+ (and (eq_attr "cpu" "r3000,r3900")
(and (eq_attr "type" "fmul,fmadd")
(eq_attr "mode" "DF")))
- "r3k_alu")
+ "alu")
(define_insn_reservation "r3k_fdiv_single" 12
- (and (eq_attr "cpu" "r3000")
- (and (eq_attr "type" "fdiv,fsqrt,frsqrt")
+ (and (eq_attr "cpu" "r3000,r3900")
+ (and (eq_attr "type" "fdiv")
(eq_attr "mode" "SF")))
- "r3k_alu")
+ "alu")
(define_insn_reservation "r3k_fdiv_double" 19
- (and (eq_attr "cpu" "r3000")
- (and (eq_attr "type" "fdiv,fsqrt,frsqrt")
+ (and (eq_attr "cpu" "r3000,r3900")
+ (and (eq_attr "type" "fdiv")
(eq_attr "mode" "DF")))
- "r3k_alu")
+ "alu")