4000.md revision 169689
1224115Sjchandra;; R4000 pipeline description.
2224115Sjchandra;;   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3224115Sjchandra;;
4224115Sjchandra;; This file is part of GCC.
5224115Sjchandra
6224115Sjchandra;; GCC is free software; you can redistribute it and/or modify it
7224115Sjchandra;; under the terms of the GNU General Public License as published
8224115Sjchandra;; by the Free Software Foundation; either version 2, or (at your
9224115Sjchandra;; option) any later version.
10224115Sjchandra
11224115Sjchandra;; GCC is distributed in the hope that it will be useful, but WITHOUT
12224115Sjchandra;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13224115Sjchandra;; or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
14224115Sjchandra;; License for more details.
15224115Sjchandra
16224115Sjchandra;; You should have received a copy of the GNU General Public License
17224115Sjchandra;; along with GCC; see the file COPYING.  If not, write to the
18224115Sjchandra;; Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
19224115Sjchandra;; MA 02110-1301, USA.
20233644Sjmallett
21224115Sjchandra
22224115Sjchandra;; This file overrides parts of generic.md.  It is derived from the
23224115Sjchandra;; old define_function_unit description.
24224115Sjchandra
25227663Sjchandra(define_insn_reservation "r4k_imul" 10
26227663Sjchandra  (and (eq_attr "cpu" "r4000")
27224115Sjchandra       (eq_attr "type" "imul,imul3,imadd"))
28224115Sjchandra  "imuldiv*10")
29
30(define_insn_reservation "r4k_idiv" 69
31  (and (eq_attr "cpu" "r4000")
32       (eq_attr "type" "idiv"))
33  "imuldiv*69")
34