1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/contrib/gcc/config/sparc/sparclet.md

45 lines
1.5 KiB
Markdown
Raw Normal View History

2003-07-11 03:40:53 +00:00
;; Scheduling description for SPARClet.
;; Copyright (C) 2002 Free Software Foundation, Inc.
;;
2004-07-28 03:11:36 +00:00
;; This file is part of GCC.
2003-07-11 03:40:53 +00:00
;;
2004-07-28 03:11:36 +00:00
;; GCC is free software; you can redistribute it and/or modify
2003-07-11 03:40:53 +00:00
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;;
2004-07-28 03:11:36 +00:00
;; GCC is distributed in the hope that it will be useful,
2003-07-11 03:40:53 +00:00
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
2004-07-28 03:11:36 +00:00
;; along with GCC; see the file COPYING. If not, write to
2007-05-19 01:19:51 +00:00
;; the Free Software Foundation, 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
2003-07-11 03:40:53 +00:00
;; The SPARClet is a single-issue processor.
(define_automaton "sparclet")
(define_cpu_unit "sl_load0,sl_load1,sl_load2,sl_load3" "sparclet")
(define_cpu_unit "sl_store,sl_imul" "sparclet")
(define_reservation "sl_load_any" "(sl_load0 | sl_load1 | sl_load2 | sl_load3)")
(define_reservation "sl_load_all" "(sl_load0 + sl_load1 + sl_load2 + sl_load3)")
(define_insn_reservation "sl_ld" 3
(and (eq_attr "cpu" "tsc701")
(eq_attr "type" "load,sload"))
"sl_load_any, sl_load_any, sl_load_any")
(define_insn_reservation "sl_st" 3
(and (eq_attr "cpu" "tsc701")
(eq_attr "type" "store"))
"(sl_store+sl_load_all)*3")
(define_insn_reservation "sl_imul" 5
(and (eq_attr "cpu" "tsc701")
(eq_attr "type" "imul"))
"sl_imul*5")