1169689Skan;; VR4100 and VR4120 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 "r4100_load" 2
26169689Skan  (and (eq_attr "cpu" "r4100,r4120")
27169689Skan       (eq_attr "type" "load,fpload,fpidxload,xfer"))
28169689Skan  "alu")
29169689Skan
30169689Skan(define_insn_reservation "r4100_imul_si" 1
31169689Skan  (and (eq_attr "cpu" "r4100,r4120")
32169689Skan       (and (eq_attr "type" "imul,imul3,imadd")
33169689Skan	    (eq_attr "mode" "SI")))
34169689Skan  "imuldiv")
35169689Skan
36169689Skan(define_insn_reservation "r4100_imul_di" 4
37169689Skan  (and (eq_attr "cpu" "r4100,r4120")
38169689Skan       (and (eq_attr "type" "imul,imul3,imadd")
39169689Skan	    (eq_attr "mode" "DI")))
40169689Skan  "imuldiv*4")
41169689Skan
42169689Skan(define_insn_reservation "r4100_idiv_si" 35
43169689Skan  (and (eq_attr "cpu" "r4100,r4120")
44169689Skan       (and (eq_attr "type" "idiv")
45169689Skan	    (eq_attr "mode" "SI")))
46169689Skan  "imuldiv*35")
47169689Skan
48169689Skan(define_insn_reservation "r4100_idiv_di" 67
49169689Skan  (and (eq_attr "cpu" "r4100,r4120")
50169689Skan       (and (eq_attr "type" "idiv")
51169689Skan	    (eq_attr "mode" "DI")))
52169689Skan  "imuldiv*67")
53