From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- gcc/config/sparc/niagara2.md | 90 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 gcc/config/sparc/niagara2.md (limited to 'gcc/config/sparc/niagara2.md') diff --git a/gcc/config/sparc/niagara2.md b/gcc/config/sparc/niagara2.md new file mode 100644 index 000000000..298ebe013 --- /dev/null +++ b/gcc/config/sparc/niagara2.md @@ -0,0 +1,90 @@ +;; Scheduling description for Niagara-2. +;; Copyright (C) 2007 Free Software Foundation, Inc. +;; +;; This file is part of GCC. +;; +;; GCC is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation; either version 3, or (at your option) +;; any later version. +;; +;; GCC is distributed in the hope that it will be useful, +;; 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 +;; along with GCC; see the file COPYING3. If not see +;; . + +;; Niagara-2 is a single-issue processor. + +(define_automaton "niagara2_0") + +(define_cpu_unit "niag2_pipe" "niagara2_0") + +(define_insn_reservation "niag2_25cycle" 25 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "flushw")) + "niag2_pipe*25") + +(define_insn_reservation "niag2_5cycle" 5 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "multi,flushw,iflush,trap")) + "niag2_pipe*5") + +(define_insn_reservation "niag2_6cycle" 4 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "savew")) + "niag2_pipe*4") + +/* Most basic operations are single-cycle. */ +(define_insn_reservation "niag2_ialu" 1 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "ialu,shift,compare,cmove")) + "niag2_pipe") + +(define_insn_reservation "niag2_imul" 5 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "imul")) + "niag2_pipe*5") + +(define_insn_reservation "niag2_idiv" 31 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "idiv")) + "niag2_pipe*31") + +(define_insn_reservation "niag2_branch" 5 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "call,sibcall,call_no_delay_slot,uncond_branch,branch")) + "niag2_pipe*5") + +(define_insn_reservation "niag2_3cycle_load" 3 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "load,fpload")) + "niag2_pipe*3") + +(define_insn_reservation "niag2_1cycle_store" 1 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "store,fpstore")) + "niag2_pipe") + +(define_insn_reservation "niag2_fp" 3 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "fpmove,fpcmove,fpcrmove,fpcmp,fpmul")) + "niag2_pipe*3") + +(define_insn_reservation "niag2_fdivs" 19 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "fpdivs")) + "niag2_pipe*19") + +(define_insn_reservation "niag2_fdivd" 33 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "fpdivd")) + "niag2_pipe*33") + +(define_insn_reservation "niag2_vis" 6 + (and (eq_attr "cpu" "niagara2") + (eq_attr "type" "fga,fgm_pack,fgm_mul,fgm_cmp,fgm_pdist")) + "niag2_pipe*6") -- cgit v1.2.3