]>
Commit | Line | Data |
---|---|---|
56149abc | 1 | ;; Scheduling description for SPARC Cypress. |
5624e564 | 2 | ;; Copyright (C) 2002-2015 Free Software Foundation, Inc. |
a1d9bd0c | 3 | ;; |
4d8af13f | 4 | ;; This file is part of GCC. |
a1d9bd0c | 5 | ;; |
4d8af13f | 6 | ;; GCC is free software; you can redistribute it and/or modify |
a1d9bd0c | 7 | ;; it under the terms of the GNU General Public License as published by |
2f83c7d6 | 8 | ;; the Free Software Foundation; either version 3, or (at your option) |
a1d9bd0c DM |
9 | ;; any later version. |
10 | ;; | |
4d8af13f | 11 | ;; GCC is distributed in the hope that it will be useful, |
a1d9bd0c DM |
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. | |
15 | ;; | |
16 | ;; You should have received a copy of the GNU General Public License | |
2f83c7d6 NC |
17 | ;; along with GCC; see the file COPYING3. If not see |
18 | ;; <http://www.gnu.org/licenses/>. | |
a1d9bd0c DM |
19 | |
20 | ;; The Cypress is a pretty simple single-issue processor. | |
21 | ||
22 | (define_automaton "cypress_0,cypress_1") | |
23 | ||
24 | (define_cpu_unit "cyp_memory, cyp_fpalu" "cypress_0") | |
25 | (define_cpu_unit "cyp_fpmds" "cypress_1") | |
26 | ||
27 | (define_insn_reservation "cyp_load" 2 | |
28 | (and (eq_attr "cpu" "cypress") | |
29 | (eq_attr "type" "load,sload,fpload")) | |
30 | "cyp_memory, nothing") | |
31 | ||
32 | (define_insn_reservation "cyp_fp_alu" 5 | |
33 | (and (eq_attr "cpu" "cypress") | |
34 | (eq_attr "type" "fp,fpmove")) | |
35 | "cyp_fpalu, nothing*3") | |
36 | ||
37 | (define_insn_reservation "cyp_fp_mult" 7 | |
38 | (and (eq_attr "cpu" "cypress") | |
39 | (eq_attr "type" "fpmul")) | |
40 | "cyp_fpmds, nothing*5") | |
41 | ||
42 | (define_insn_reservation "cyp_fp_div" 37 | |
43 | (and (eq_attr "cpu" "cypress") | |
44 | (eq_attr "type" "fpdivs,fpdivd")) | |
45 | "cyp_fpmds, nothing*35") | |
46 | ||
47 | (define_insn_reservation "cyp_fp_sqrt" 63 | |
48 | (and (eq_attr "cpu" "cypress") | |
49 | (eq_attr "type" "fpsqrts,fpsqrtd")) | |
50 | "cyp_fpmds, nothing*61") |