OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [rs6000/] [rs64.md] - Diff between revs 154 and 816

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

Rev 154 Rev 816
;; Scheduling description for IBM RS64 processors.
;; Scheduling description for IBM RS64 processors.
;;   Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
;;   Copyright (C) 2003, 2004, 2007 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 it
;; GCC is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published
;; under the terms of the GNU General Public License as published
;; by the Free Software Foundation; either version 3, or (at your
;; by the Free Software Foundation; either version 3, or (at your
;; option) any later version.
;; option) any later version.
;; GCC is distributed in the hope that it will be useful, but WITHOUT
;; GCC is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
;; or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
;; or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
;; License for more details.
;; 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
;; .
;; .
(define_automaton "rs64,rs64fp")
(define_automaton "rs64,rs64fp")
(define_cpu_unit "iu_rs64" "rs64")
(define_cpu_unit "iu_rs64" "rs64")
(define_cpu_unit "mciu_rs64" "rs64")
(define_cpu_unit "mciu_rs64" "rs64")
(define_cpu_unit "fpu_rs64" "rs64fp")
(define_cpu_unit "fpu_rs64" "rs64fp")
(define_cpu_unit "lsu_rs64,bpu_rs64" "rs64")
(define_cpu_unit "lsu_rs64,bpu_rs64" "rs64")
;; RS64a 64-bit IU, LSU, FPU, BPU
;; RS64a 64-bit IU, LSU, FPU, BPU
(define_insn_reservation "rs64a-load" 2
(define_insn_reservation "rs64a-load" 2
  (and (eq_attr "type" "load,load_ext,load_ext_u,load_ext_ux,load_ux,load_u")
  (and (eq_attr "type" "load,load_ext,load_ext_u,load_ext_ux,load_ux,load_u")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-store" 2
(define_insn_reservation "rs64a-store" 2
  (and (eq_attr "type" "store,store_ux,store_u,fpstore,fpstore_ux,fpstore_u")
  (and (eq_attr "type" "store,store_ux,store_u,fpstore,fpstore_ux,fpstore_u")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-fpload" 3
(define_insn_reservation "rs64a-fpload" 3
  (and (eq_attr "type" "fpload,fpload_ux,fpload_u")
  (and (eq_attr "type" "fpload,fpload_ux,fpload_u")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-llsc" 2
(define_insn_reservation "rs64a-llsc" 2
  (and (eq_attr "type" "load_l,store_c")
  (and (eq_attr "type" "load_l,store_c")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-integer" 1
(define_insn_reservation "rs64a-integer" 1
  (and (eq_attr "type" "integer,insert_word")
  (and (eq_attr "type" "integer,insert_word")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "iu_rs64")
  "iu_rs64")
(define_insn_reservation "rs64a-two" 1
(define_insn_reservation "rs64a-two" 1
  (and (eq_attr "type" "two")
  (and (eq_attr "type" "two")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "iu_rs64,iu_rs64")
  "iu_rs64,iu_rs64")
(define_insn_reservation "rs64a-three" 1
(define_insn_reservation "rs64a-three" 1
  (and (eq_attr "type" "three")
  (and (eq_attr "type" "three")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "iu_rs64,iu_rs64,iu_rs64")
  "iu_rs64,iu_rs64,iu_rs64")
(define_insn_reservation "rs64a-imul" 20
(define_insn_reservation "rs64a-imul" 20
  (and (eq_attr "type" "imul,imul_compare")
  (and (eq_attr "type" "imul,imul_compare")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64*13")
  "mciu_rs64*13")
(define_insn_reservation "rs64a-imul2" 12
(define_insn_reservation "rs64a-imul2" 12
  (and (eq_attr "type" "imul2")
  (and (eq_attr "type" "imul2")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64*5")
  "mciu_rs64*5")
(define_insn_reservation "rs64a-imul3" 8
(define_insn_reservation "rs64a-imul3" 8
  (and (eq_attr "type" "imul3")
  (and (eq_attr "type" "imul3")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64*2")
  "mciu_rs64*2")
(define_insn_reservation "rs64a-lmul" 34
(define_insn_reservation "rs64a-lmul" 34
  (and (eq_attr "type" "lmul,lmul_compare")
  (and (eq_attr "type" "lmul,lmul_compare")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64*34")
  "mciu_rs64*34")
(define_insn_reservation "rs64a-idiv" 66
(define_insn_reservation "rs64a-idiv" 66
  (and (eq_attr "type" "idiv")
  (and (eq_attr "type" "idiv")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64*66")
  "mciu_rs64*66")
(define_insn_reservation "rs64a-ldiv" 66
(define_insn_reservation "rs64a-ldiv" 66
  (and (eq_attr "type" "ldiv")
  (and (eq_attr "type" "ldiv")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64*66")
  "mciu_rs64*66")
(define_insn_reservation "rs64a-compare" 3
(define_insn_reservation "rs64a-compare" 3
  (and (eq_attr "type" "cmp,fast_compare,compare,delayed_compare")
  (and (eq_attr "type" "cmp,fast_compare,compare,delayed_compare")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "iu_rs64,nothing,bpu_rs64")
  "iu_rs64,nothing,bpu_rs64")
(define_insn_reservation "rs64a-fpcompare" 5
(define_insn_reservation "rs64a-fpcompare" 5
  (and (eq_attr "type" "fpcompare")
  (and (eq_attr "type" "fpcompare")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64,fpu_rs64,bpu_rs64")
  "mciu_rs64,fpu_rs64,bpu_rs64")
(define_insn_reservation "rs64a-fp" 4
(define_insn_reservation "rs64a-fp" 4
  (and (eq_attr "type" "fp,dmul")
  (and (eq_attr "type" "fp,dmul")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64,fpu_rs64")
  "mciu_rs64,fpu_rs64")
(define_insn_reservation "rs64a-sdiv" 31
(define_insn_reservation "rs64a-sdiv" 31
  (and (eq_attr "type" "sdiv,ddiv")
  (and (eq_attr "type" "sdiv,ddiv")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64,fpu_rs64*31")
  "mciu_rs64,fpu_rs64*31")
(define_insn_reservation "rs64a-sqrt" 49
(define_insn_reservation "rs64a-sqrt" 49
  (and (eq_attr "type" "ssqrt,dsqrt")
  (and (eq_attr "type" "ssqrt,dsqrt")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "mciu_rs64,fpu_rs64*49")
  "mciu_rs64,fpu_rs64*49")
(define_insn_reservation "rs64a-mfcr" 2
(define_insn_reservation "rs64a-mfcr" 2
  (and (eq_attr "type" "mfcr")
  (and (eq_attr "type" "mfcr")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-mtcr" 3
(define_insn_reservation "rs64a-mtcr" 3
  (and (eq_attr "type" "mtcr")
  (and (eq_attr "type" "mtcr")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-mtjmpr" 3
(define_insn_reservation "rs64a-mtjmpr" 3
  (and (eq_attr "type" "mtjmpr")
  (and (eq_attr "type" "mtjmpr")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-mfjmpr" 2
(define_insn_reservation "rs64a-mfjmpr" 2
  (and (eq_attr "type" "mfjmpr")
  (and (eq_attr "type" "mfjmpr")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
(define_insn_reservation "rs64a-jmpreg" 1
(define_insn_reservation "rs64a-jmpreg" 1
  (and (eq_attr "type" "jmpreg,branch,cr_logical,delayed_cr")
  (and (eq_attr "type" "jmpreg,branch,cr_logical,delayed_cr")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "bpu_rs64")
  "bpu_rs64")
(define_insn_reservation "rs64a-isync" 6
(define_insn_reservation "rs64a-isync" 6
  (and (eq_attr "type" "isync")
  (and (eq_attr "type" "isync")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "bpu_rs64")
  "bpu_rs64")
(define_insn_reservation "rs64a-sync" 1
(define_insn_reservation "rs64a-sync" 1
  (and (eq_attr "type" "sync")
  (and (eq_attr "type" "sync")
       (eq_attr "cpu" "rs64a"))
       (eq_attr "cpu" "rs64a"))
  "lsu_rs64")
  "lsu_rs64")
 
 

powered by: WebSVN 2.1.0

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