5000.md revision 169689
1169689Skan;; VR5000 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 "r5k_load" 2 26169689Skan (and (eq_attr "cpu" "r5000") 27169689Skan (eq_attr "type" "load,fpload,fpidxload,xfer")) 28169689Skan "alu") 29169689Skan 30169689Skan(define_insn_reservation "r5k_imul_si" 5 31169689Skan (and (eq_attr "cpu" "r5000") 32169689Skan (and (eq_attr "type" "imul,imul3,imadd") 33169689Skan (eq_attr "mode" "SI"))) 34169689Skan "imuldiv*5") 35169689Skan 36169689Skan(define_insn_reservation "r5k_imul_di" 9 37169689Skan (and (eq_attr "cpu" "r5000") 38169689Skan (and (eq_attr "type" "imul,imul3,imadd") 39169689Skan (eq_attr "mode" "DI"))) 40169689Skan "imuldiv*9") 41169689Skan 42169689Skan(define_insn_reservation "r5k_idiv_si" 36 43169689Skan (and (eq_attr "cpu" "r5000") 44169689Skan (and (eq_attr "type" "idiv") 45169689Skan (eq_attr "mode" "SI"))) 46169689Skan "imuldiv*36") 47169689Skan 48169689Skan(define_insn_reservation "r5k_idiv_di" 68 49169689Skan (and (eq_attr "cpu" "r5000") 50169689Skan (and (eq_attr "type" "idiv") 51169689Skan (eq_attr "mode" "DI"))) 52169689Skan "imuldiv*68") 53169689Skan 54169689Skan(define_insn_reservation "r5k_fmove" 1 55169689Skan (and (eq_attr "cpu" "r5000") 56169689Skan (eq_attr "type" "fcmp,fabs,fneg,fmove")) 57169689Skan "alu") 58169689Skan 59169689Skan(define_insn_reservation "r5k_fmul_single" 4 60169689Skan (and (eq_attr "cpu" "r5000") 61169689Skan (and (eq_attr "type" "fmul,fmadd") 62169689Skan (eq_attr "mode" "SF"))) 63169689Skan "alu") 64169689Skan 65169689Skan(define_insn_reservation "r5k_fmul_double" 5 66169689Skan (and (eq_attr "cpu" "r5000") 67169689Skan (and (eq_attr "type" "fmul,fmadd") 68169689Skan (eq_attr "mode" "DF"))) 69169689Skan "alu") 70169689Skan 71169689Skan(define_insn_reservation "r5k_fdiv_single" 21 72169689Skan (and (eq_attr "cpu" "r5000") 73169689Skan (and (eq_attr "type" "fdiv,frdiv,fsqrt,frsqrt") 74169689Skan (eq_attr "mode" "SF"))) 75169689Skan "alu") 76169689Skan 77169689Skan(define_insn_reservation "r5k_fsqrt_double" 36 78169689Skan (and (eq_attr "cpu" "r5000") 79169689Skan (and (eq_attr "type" "fsqrt,frsqrt") 80169689Skan (eq_attr "mode" "DF"))) 81169689Skan "alu") 82