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.0rc2/] [gcc/] [config/] [i386/] [geode.md] - Diff between revs 282 and 384

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

Rev 282 Rev 384
;; Geode Scheduling
;; Geode Scheduling
;; Copyright (C) 2006, 2007
;; Copyright (C) 2006, 2007
;; 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
;; .
;; .
;;
;;
;; The Geode architecture is one insn issue processor.
;; The Geode architecture is one insn issue processor.
;;
;;
;; This description is based on data from the following documents:
;; This description is based on data from the following documents:
;;
;;
;;    "AMD Geode GX Processor Data Book"
;;    "AMD Geode GX Processor Data Book"
;;    Advanced Micro Devices, Inc., Aug 2005.
;;    Advanced Micro Devices, Inc., Aug 2005.
;;
;;
;;    "AMD Geode LX Processor Data Book"
;;    "AMD Geode LX Processor Data Book"
;;    Advanced Micro Devices, Inc., Jan 2006.
;;    Advanced Micro Devices, Inc., Jan 2006.
;;
;;
;;
;;
;; CPU execution units of the Geode:
;; CPU execution units of the Geode:
;;
;;
;; issue        describes the issue pipeline.
;; issue        describes the issue pipeline.
;; alu          describes the Integer unit
;; alu          describes the Integer unit
;; fpu          describes the FP unit
;; fpu          describes the FP unit
;;
;;
;; The fp unit is out of order execution unit with register renaming.
;; The fp unit is out of order execution unit with register renaming.
;; There is also memory management unit and execution pipeline for
;; There is also memory management unit and execution pipeline for
;; load/store operations.  We ignore it and difference between insns
;; load/store operations.  We ignore it and difference between insns
;; using memory and registers.
;; using memory and registers.
(define_automaton "geode")
(define_automaton "geode")
(define_cpu_unit "geode_issue,geode_alu,geode_fpu" "geode")
(define_cpu_unit "geode_issue,geode_alu,geode_fpu" "geode")
(define_insn_reservation "alu" 1
(define_insn_reservation "alu" 1
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "alu,alu1,negnot,icmp,lea,test,imov,imovx,icmov,incdec,setcc"))
                              (eq_attr "type" "alu,alu1,negnot,icmp,lea,test,imov,imovx,icmov,incdec,setcc"))
                         "geode_issue,geode_alu")
                         "geode_issue,geode_alu")
(define_insn_reservation "shift" 2
(define_insn_reservation "shift" 2
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "ishift,ishift1,rotate,rotate1"))
                              (eq_attr "type" "ishift,ishift1,rotate,rotate1"))
                         "geode_issue,geode_alu*2")
                         "geode_issue,geode_alu*2")
(define_insn_reservation "imul" 7
(define_insn_reservation "imul" 7
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "imul"))
                              (eq_attr "type" "imul"))
                         "geode_issue,geode_alu*7")
                         "geode_issue,geode_alu*7")
(define_insn_reservation "idiv" 40
(define_insn_reservation "idiv" 40
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "idiv"))
                              (eq_attr "type" "idiv"))
                         "geode_issue,geode_alu*40")
                         "geode_issue,geode_alu*40")
;; The branch unit.
;; The branch unit.
(define_insn_reservation "call" 2
(define_insn_reservation "call" 2
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "call,callv"))
                              (eq_attr "type" "call,callv"))
                         "geode_issue,geode_alu*2")
                         "geode_issue,geode_alu*2")
(define_insn_reservation "geode_branch" 1
(define_insn_reservation "geode_branch" 1
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "ibr"))
                              (eq_attr "type" "ibr"))
                         "geode_issue,geode_alu")
                         "geode_issue,geode_alu")
(define_insn_reservation "geode_pop_push" 1
(define_insn_reservation "geode_pop_push" 1
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "pop,push"))
                              (eq_attr "type" "pop,push"))
                         "geode_issue,geode_alu")
                         "geode_issue,geode_alu")
(define_insn_reservation "geode_leave" 2
(define_insn_reservation "geode_leave" 2
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "leave"))
                              (eq_attr "type" "leave"))
                         "geode_issue,geode_alu*2")
                         "geode_issue,geode_alu*2")
(define_insn_reservation "geode_load_str" 4
(define_insn_reservation "geode_load_str" 4
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (and (eq_attr "type" "str")
                              (and (eq_attr "type" "str")
                                   (eq_attr "memory" "load,both")))
                                   (eq_attr "memory" "load,both")))
                         "geode_issue,geode_alu*4")
                         "geode_issue,geode_alu*4")
(define_insn_reservation "geode_store_str" 2
(define_insn_reservation "geode_store_str" 2
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (and (eq_attr "type" "str")
                              (and (eq_attr "type" "str")
                                   (eq_attr "memory" "store")))
                                   (eq_attr "memory" "store")))
                         "geode_issue,geode_alu*2")
                         "geode_issue,geode_alu*2")
;; Be optimistic
;; Be optimistic
(define_insn_reservation "geode_unknown" 1
(define_insn_reservation "geode_unknown" 1
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "multi,other"))
                              (eq_attr "type" "multi,other"))
                         "geode_issue,geode_alu")
                         "geode_issue,geode_alu")
;; FPU
;; FPU
(define_insn_reservation "geode_fop" 6
(define_insn_reservation "geode_fop" 6
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "fop,fcmp"))
                              (eq_attr "type" "fop,fcmp"))
                         "geode_issue,geode_fpu*6")
                         "geode_issue,geode_fpu*6")
(define_insn_reservation "geode_fsimple" 1
(define_insn_reservation "geode_fsimple" 1
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "fmov,fcmov,fsgn,fxch"))
                              (eq_attr "type" "fmov,fcmov,fsgn,fxch"))
                         "geode_issue,geode_fpu")
                         "geode_issue,geode_fpu")
(define_insn_reservation "geode_fist" 4
(define_insn_reservation "geode_fist" 4
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "fistp,fisttp"))
                              (eq_attr "type" "fistp,fisttp"))
                         "geode_issue,geode_fpu*4")
                         "geode_issue,geode_fpu*4")
(define_insn_reservation "geode_fmul" 10
(define_insn_reservation "geode_fmul" 10
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "fmul"))
                              (eq_attr "type" "fmul"))
                         "geode_issue,geode_fpu*10")
                         "geode_issue,geode_fpu*10")
(define_insn_reservation "geode_fdiv" 47
(define_insn_reservation "geode_fdiv" 47
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "fdiv"))
                              (eq_attr "type" "fdiv"))
                         "geode_issue,geode_fpu*47")
                         "geode_issue,geode_fpu*47")
;; We use minimal latency (fsin) here
;; We use minimal latency (fsin) here
(define_insn_reservation "geode_fpspc" 54
(define_insn_reservation "geode_fpspc" 54
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "fpspc"))
                              (eq_attr "type" "fpspc"))
                         "geode_issue,geode_fpu*54")
                         "geode_issue,geode_fpu*54")
(define_insn_reservation "geode_frndint" 12
(define_insn_reservation "geode_frndint" 12
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "frndint"))
                              (eq_attr "type" "frndint"))
                         "geode_issue,geode_fpu*12")
                         "geode_issue,geode_fpu*12")
(define_insn_reservation "geode_mmxmov" 1
(define_insn_reservation "geode_mmxmov" 1
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "mmxmov"))
                              (eq_attr "type" "mmxmov"))
                         "geode_issue,geode_fpu")
                         "geode_issue,geode_fpu")
(define_insn_reservation "geode_mmx" 2
(define_insn_reservation "geode_mmx" 2
                         (and (eq_attr "cpu" "geode")
                         (and (eq_attr "cpu" "geode")
                              (eq_attr "type" "mmx,mmxadd,mmxmul,mmxcmp,mmxcvt,mmxshft"))
                              (eq_attr "type" "mmx,mmxadd,mmxmul,mmxcmp,mmxcvt,mmxshft"))
                         "geode_issue,geode_fpu*2")
                         "geode_issue,geode_fpu*2")
 
 

powered by: WebSVN 2.1.0

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