1 ;; Scheduling description for LEON.
2 ;; Copyright (C)
2010-
2013 Free Software Foundation, Inc.
4 ;; This file is part of GCC.
6 ;; GCC is free software; you can redistribute it and/or modify
7 ;; it under the terms of the GNU General Public License as published by
8 ;; the Free Software Foundation; either version
3, or (at your option)
11 ;; GCC is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;; GNU General Public License for more details.
16 ;; You should have received a copy of the GNU General Public License
17 ;; along with GCC; see the file COPYING3. If not see
18 ;; <http://www.gnu.org/licenses/>.
21 (define_automaton "leon")
23 (define_cpu_unit "leon_memory, leon_fpalu" "leon")
24 (define_cpu_unit "leon_fpmds" "leon")
25 (define_cpu_unit "write_buf" "leon")
27 (define_insn_reservation "leon_load"
1
28 (and (eq_attr "cpu" "leon")
29 (eq_attr "type" "load,sload,fpload"))
32 (define_insn_reservation "leon_store"
1
33 (and (eq_attr "cpu" "leon")
34 (eq_attr "type" "store,fpstore"))
35 "leon_memory+write_buf")
37 (define_insn_reservation "leon_fp_alu"
1
38 (and (eq_attr "cpu" "leon")
39 (eq_attr "type" "fp,fpmove"))
40 "leon_fpalu, nothing")
42 (define_insn_reservation "leon_fp_mult"
1
43 (and (eq_attr "cpu" "leon")
44 (eq_attr "type" "fpmul"))
45 "leon_fpmds, nothing")
47 (define_insn_reservation "leon_fp_div"
16
48 (and (eq_attr "cpu" "leon")
49 (eq_attr "type" "fpdivs,fpdivd"))
50 "leon_fpmds, nothing*
15")
52 (define_insn_reservation "leon_fp_sqrt"
23
53 (and (eq_attr "cpu" "leon")
54 (eq_attr "type" "fpsqrts,fpsqrtd"))
55 "leon_fpmds, nothing*
21")