freebsd-dev/contrib/gcc/config/sparc/cypress.md

52 lines
1.7 KiB
Markdown
Raw Normal View History

2003-07-11 03:40:53 +00:00
;; Scheduling description for SPARC Cypress.
;; 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
2003-07-11 03:40:53 +00:00
;; the Free Software Foundation, 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;; The Cypress is a pretty simple single-issue processor.
(define_automaton "cypress_0,cypress_1")
(define_cpu_unit "cyp_memory, cyp_fpalu" "cypress_0")
(define_cpu_unit "cyp_fpmds" "cypress_1")
(define_insn_reservation "cyp_load" 2
(and (eq_attr "cpu" "cypress")
(eq_attr "type" "load,sload,fpload"))
"cyp_memory, nothing")
(define_insn_reservation "cyp_fp_alu" 5
(and (eq_attr "cpu" "cypress")
(eq_attr "type" "fp,fpmove"))
"cyp_fpalu, nothing*3")
(define_insn_reservation "cyp_fp_mult" 7
(and (eq_attr "cpu" "cypress")
(eq_attr "type" "fpmul"))
"cyp_fpmds, nothing*5")
(define_insn_reservation "cyp_fp_div" 37
(and (eq_attr "cpu" "cypress")
(eq_attr "type" "fpdivs,fpdivd"))
"cyp_fpmds, nothing*35")
(define_insn_reservation "cyp_fp_sqrt" 63
(and (eq_attr "cpu" "cypress")
(eq_attr "type" "fpsqrts,fpsqrtd"))
"cyp_fpmds, nothing*61")