1 ;; Scheduling description for SPARClet.
2 ;; Copyright (C) 2002 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 2, 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 COPYING. If not, write to
18 ;; the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 ;; Boston, MA 02110-1301, USA.
21 ;; The SPARClet is a single-issue processor.
23 (define_automaton "sparclet")
25 (define_cpu_unit "sl_load0,sl_load1,sl_load2,sl_load3" "sparclet")
26 (define_cpu_unit "sl_store,sl_imul" "sparclet")
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)")
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")
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")
41 (define_insn_reservation "sl_imul" 5
42 (and (eq_attr "cpu" "tsc701")
43 (eq_attr "type" "imul"))