]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/gcc/config/sparc/sparclet.md
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / gcc / config / sparc / sparclet.md
1 ;; Scheduling description for SPARClet.
2 ;;   Copyright (C) 2002 Free Software Foundation, Inc.
3 ;;
4 ;; This file is part of GCC.
5 ;;
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 2, or (at your option)
9 ;; any later version.
10 ;;
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.
15 ;;
16 ;; You should have received a copy of the GNU General Public License
17 ;; along with GCC; see the file COPYING.  If not, write to
18 ;; the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 ;; Boston, MA 02110-1301, USA.
20
21 ;; The SPARClet is a single-issue processor.
22
23 (define_automaton "sparclet")
24
25 (define_cpu_unit "sl_load0,sl_load1,sl_load2,sl_load3" "sparclet")
26 (define_cpu_unit "sl_store,sl_imul" "sparclet")
27
28 (define_reservation "sl_load_any" "(sl_load0 | sl_load1 | sl_load2 | sl_load3)")
29 (define_reservation "sl_load_all" "(sl_load0 + sl_load1 + sl_load2 + sl_load3)")
30
31 (define_insn_reservation "sl_ld" 3
32   (and (eq_attr "cpu" "tsc701")
33    (eq_attr "type" "load,sload"))
34   "sl_load_any, sl_load_any, sl_load_any")
35
36 (define_insn_reservation "sl_st" 3
37   (and (eq_attr "cpu" "tsc701")
38     (eq_attr "type" "store"))
39   "(sl_store+sl_load_all)*3")
40
41 (define_insn_reservation "sl_imul" 5
42   (and (eq_attr "cpu" "tsc701")
43     (eq_attr "type" "imul"))
44   "sl_imul*5")