Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / config / score / score-generic.md
1 ;;  Machine description for Sunplus S+CORE
2 ;;  Sunplus S+CORE Pipeline Description
3 ;;  Copyright (C) 2005-2013 Free Software Foundation, Inc.
4 ;;  Contributed by Sunnorth.
5
6 ;; This file is part of GCC.
7
8 ;; GCC is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation; either version 3, or (at your option)
11 ;; any later version.
12
13 ;; GCC is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 ;; GNU General Public License for more details.
17
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with GCC; see the file COPYING3.  If not see
20 ;; <http://www.gnu.org/licenses/>.
21
22 (define_automaton "score")
23
24 (define_cpu_unit "core" "score")
25
26 (define_insn_reservation "memory" 3
27                          (eq_attr "type" "load")
28                          "core")
29
30 (define_insn_reservation "mul" 3
31                          (eq_attr "type" "mul,div")
32                          "core")
33
34 (define_insn_reservation "fce" 1
35                          (eq_attr "type" "fce")
36                          "core")
37
38 (define_insn_reservation "tsr" 1
39                          (eq_attr "type" "tsr,fsr")
40                          "core")
41
42 (define_insn_reservation "up_c" 1
43                          (eq_attr "up_c" "yes")
44                          "core")