3000.md revision 169689
1169689Skan;; R3000 and TX39 pipeline description. 2169689Skan;; Copyright (C) 2004, 2005 Free Software Foundation, Inc. 3169689Skan;; 4169689Skan;; This file is part of GCC. 5169689Skan 6169689Skan;; GCC is free software; you can redistribute it and/or modify it 7169689Skan;; under the terms of the GNU General Public License as published 8169689Skan;; by the Free Software Foundation; either version 2, or (at your 9169689Skan;; option) any later version. 10169689Skan 11169689Skan;; GCC is distributed in the hope that it will be useful, but WITHOUT 12169689Skan;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13169689Skan;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14169689Skan;; License for more details. 15169689Skan 16169689Skan;; You should have received a copy of the GNU General Public License 17169689Skan;; along with GCC; see the file COPYING. If not, write to the 18169689Skan;; Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, 19169689Skan;; MA 02110-1301, USA. 20169689Skan 21169689Skan 22169689Skan;; This file overrides parts of generic.md. It is derived from the 23169689Skan;; old define_function_unit description. 24169689Skan 25169689Skan(define_insn_reservation "r3k_load" 2 26169689Skan (and (eq_attr "cpu" "r3000,r3900") 27169689Skan (eq_attr "type" "load,fpload,fpidxload")) 28169689Skan "alu") 29169689Skan 30169689Skan(define_insn_reservation "r3k_imul" 12 31169689Skan (and (eq_attr "cpu" "r3000,r3900") 32169689Skan (eq_attr "type" "imul,imul3,imadd")) 33169689Skan "imuldiv*12") 34169689Skan 35169689Skan(define_insn_reservation "r3k_idiv" 35 36169689Skan (and (eq_attr "cpu" "r3000,r3900") 37169689Skan (eq_attr "type" "idiv")) 38169689Skan "imuldiv*35") 39169689Skan 40169689Skan(define_insn_reservation "r3k_fmove" 1 41169689Skan (and (eq_attr "cpu" "r3000,r3900") 42169689Skan (eq_attr "type" "fabs,fneg,fmove")) 43169689Skan "alu") 44169689Skan 45169689Skan(define_insn_reservation "r3k_fadd" 2 46169689Skan (and (eq_attr "cpu" "r3000,r3900") 47169689Skan (eq_attr "type" "fcmp,fadd")) 48169689Skan "alu") 49169689Skan 50169689Skan(define_insn_reservation "r3k_fmul_single" 4 51169689Skan (and (eq_attr "cpu" "r3000,r3900") 52169689Skan (and (eq_attr "type" "fmul,fmadd") 53169689Skan (eq_attr "mode" "SF"))) 54169689Skan "alu") 55169689Skan 56169689Skan(define_insn_reservation "r3k_fmul_double" 5 57169689Skan (and (eq_attr "cpu" "r3000,r3900") 58169689Skan (and (eq_attr "type" "fmul,fmadd") 59169689Skan (eq_attr "mode" "DF"))) 60169689Skan "alu") 61169689Skan 62169689Skan(define_insn_reservation "r3k_fdiv_single" 12 63169689Skan (and (eq_attr "cpu" "r3000,r3900") 64169689Skan (and (eq_attr "type" "fdiv,frdiv") 65169689Skan (eq_attr "mode" "SF"))) 66169689Skan "alu") 67169689Skan 68169689Skan(define_insn_reservation "r3k_fdiv_double" 19 69169689Skan (and (eq_attr "cpu" "r3000,r3900") 70169689Skan (and (eq_attr "type" "fdiv,frdiv") 71169689Skan (eq_attr "mode" "DF"))) 72169689Skan "alu") 73