OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [config/] [mips/] [octeon.md] - Diff between revs 282 and 338

Only display areas with differences | Details | Blame | View Log

Rev 282 Rev 338
;;  Octeon pipeline description.
;;  Octeon pipeline description.
;;  Copyright (C) 2008
;;  Copyright (C) 2008
;;  Free Software Foundation, Inc.
;;  Free Software Foundation, Inc.
;; This file is part of GCC.
;; This file is part of GCC.
;; GCC is free software; you can redistribute it and/or modify
;; GCC is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;; any later version.
;; GCC is distributed in the hope that it will be useful,
;; GCC is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; You should have received a copy of the GNU General Public License
;; along with GCC; see the file COPYING3.  If not see
;; along with GCC; see the file COPYING3.  If not see
;; .
;; .
;;   Copyright (C) 2004, 2005, 2006 Cavium Networks.
;;   Copyright (C) 2004, 2005, 2006 Cavium Networks.
;; Octeon is a dual-issue processor that can issue all instructions on
;; Octeon is a dual-issue processor that can issue all instructions on
;; pipe0 and a subset on pipe1.
;; pipe0 and a subset on pipe1.
(define_automaton "octeon_main, octeon_mult")
(define_automaton "octeon_main, octeon_mult")
(define_cpu_unit "octeon_pipe0" "octeon_main")
(define_cpu_unit "octeon_pipe0" "octeon_main")
(define_cpu_unit "octeon_pipe1" "octeon_main")
(define_cpu_unit "octeon_pipe1" "octeon_main")
(define_cpu_unit "octeon_mult" "octeon_mult")
(define_cpu_unit "octeon_mult" "octeon_mult")
(define_insn_reservation "octeon_arith" 1
(define_insn_reservation "octeon_arith" 1
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "arith,const,logical,move,shift,signext,slt,nop"))
       (eq_attr "type" "arith,const,logical,move,shift,signext,slt,nop"))
  "octeon_pipe0 | octeon_pipe1")
  "octeon_pipe0 | octeon_pipe1")
(define_insn_reservation "octeon_condmove" 2
(define_insn_reservation "octeon_condmove" 2
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "condmove"))
       (eq_attr "type" "condmove"))
  "octeon_pipe0 | octeon_pipe1")
  "octeon_pipe0 | octeon_pipe1")
(define_insn_reservation "octeon_load" 2
(define_insn_reservation "octeon_load" 2
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "load,prefetch,mtc,mfc"))
       (eq_attr "type" "load,prefetch,mtc,mfc"))
  "octeon_pipe0")
  "octeon_pipe0")
(define_insn_reservation "octeon_store" 1
(define_insn_reservation "octeon_store" 1
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "store"))
       (eq_attr "type" "store"))
  "octeon_pipe0")
  "octeon_pipe0")
(define_insn_reservation "octeon_brj" 1
(define_insn_reservation "octeon_brj" 1
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "branch,jump,call,trap"))
       (eq_attr "type" "branch,jump,call,trap"))
  "octeon_pipe0")
  "octeon_pipe0")
(define_insn_reservation "octeon_imul3" 5
(define_insn_reservation "octeon_imul3" 5
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "imul3,pop,clz"))
       (eq_attr "type" "imul3,pop,clz"))
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult")
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult")
(define_insn_reservation "octeon_imul" 2
(define_insn_reservation "octeon_imul" 2
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "imul,mthilo"))
       (eq_attr "type" "imul,mthilo"))
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult, octeon_mult")
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult, octeon_mult")
(define_insn_reservation "octeon_mfhilo" 5
(define_insn_reservation "octeon_mfhilo" 5
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "mfhilo"))
       (eq_attr "type" "mfhilo"))
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult")
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult")
(define_insn_reservation "octeon_imadd" 4
(define_insn_reservation "octeon_imadd" 4
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "imadd"))
       (eq_attr "type" "imadd"))
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult, octeon_mult*3")
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult, octeon_mult*3")
(define_insn_reservation "octeon_idiv" 72
(define_insn_reservation "octeon_idiv" 72
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "idiv"))
       (eq_attr "type" "idiv"))
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult, octeon_mult*71")
  "(octeon_pipe0 | octeon_pipe1) + octeon_mult, octeon_mult*71")
;; Assume both pipes are needed for unknown and multiple-instruction
;; Assume both pipes are needed for unknown and multiple-instruction
;; patterns.
;; patterns.
(define_insn_reservation "octeon_unknown" 1
(define_insn_reservation "octeon_unknown" 1
  (and (eq_attr "cpu" "octeon")
  (and (eq_attr "cpu" "octeon")
       (eq_attr "type" "unknown,multi"))
       (eq_attr "type" "unknown,multi"))
  "octeon_pipe0 + octeon_pipe1")
  "octeon_pipe0 + octeon_pipe1")
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.