Rebase.
[official-gcc.git] / gcc / config / score / score-generic.md
blob4f155f9f4fdaf8bc4849a1f14b3926a691d09f54
1 ;;  Machine description for Sunplus S+CORE
2 ;;  Sunplus S+CORE Pipeline Description
3 ;;  Copyright (C) 2005-2014 Free Software Foundation, Inc.
4 ;;  Contributed by Sunnorth.
6 ;; This file is part of GCC.
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.
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.
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/>.
22 (define_automaton "score")
24 (define_cpu_unit "core" "score")
26 (define_insn_reservation "memory" 3
27                          (eq_attr "type" "load")
28                          "core")
30 (define_insn_reservation "mul" 3
31                          (eq_attr "type" "mul,div")
32                          "core")
34 (define_insn_reservation "fce" 1
35                          (eq_attr "type" "fce")
36                          "core")
38 (define_insn_reservation "tsr" 1
39                          (eq_attr "type" "tsr,fsr")
40                          "core")
42 (define_insn_reservation "up_c" 1
43                          (eq_attr "up_c" "yes")
44                          "core")