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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [config/] [sparc/] [niagara2.md] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 709 jeremybenn
;; Scheduling description for Niagara-2 and Niagara-3.
2
;;   Copyright (C) 2007, 2011 Free Software Foundation, Inc.
3
;;
4
;; This file is part of GCC.
5
;;
6
;; GCC is free software; you can redistribute it and/or modify
7
;; it under the terms of the GNU General Public License as published by
8
;; the Free Software Foundation; either version 3, or (at your option)
9
;; any later version.
10
;;
11
;; GCC is distributed in the hope that it will be useful,
12
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
;; GNU General Public License for more details.
15
;;
16
;; You should have received a copy of the GNU General Public License
17
;; along with GCC; see the file COPYING3.  If not see
18
;; .
19
 
20
;; Niagara-2 and Niagara-3 are single-issue processors.
21
 
22
(define_automaton "niagara2_0")
23
 
24
(define_cpu_unit "niag2_pipe" "niagara2_0")
25
 
26
(define_insn_reservation "niag2_25cycle" 25
27
  (and (eq_attr "cpu" "niagara2,niagara3")
28
    (eq_attr "type" "flushw"))
29
  "niag2_pipe*25")
30
 
31
(define_insn_reservation "niag2_5cycle" 5
32
  (and (eq_attr "cpu" "niagara2,niagara3")
33
    (eq_attr "type" "multi,flushw,iflush,trap"))
34
  "niag2_pipe*5")
35
 
36
(define_insn_reservation "niag2_6cycle" 4
37
  (and (eq_attr "cpu" "niagara2,niagara3")
38
    (eq_attr "type" "savew"))
39
  "niag2_pipe*4")
40
 
41
/* Most basic operations are single-cycle. */
42
(define_insn_reservation "niag2_ialu" 1
43
 (and (eq_attr "cpu" "niagara2,niagara3")
44
   (eq_attr "type" "ialu,shift,compare,cmove"))
45
 "niag2_pipe")
46
 
47
(define_insn_reservation "niag2_imul" 5
48
 (and (eq_attr "cpu" "niagara2")
49
   (eq_attr "type" "imul"))
50
 "niag2_pipe*5")
51
 
52
(define_insn_reservation "niag3_imul" 9
53
 (and (eq_attr "cpu" "niagara3")
54
   (eq_attr "type" "imul"))
55
 "niag2_pipe*9")
56
 
57
(define_insn_reservation "niag2_idiv" 26
58
 (and (eq_attr "cpu" "niagara2")
59
   (eq_attr "type" "idiv"))
60
 "niag2_pipe*26")
61
 
62
(define_insn_reservation "niag3_idiv" 31
63
 (and (eq_attr "cpu" "niagara3")
64
   (eq_attr "type" "idiv"))
65
 "niag2_pipe*31")
66
 
67
(define_insn_reservation "niag2_branch" 5
68
  (and (eq_attr "cpu" "niagara2,niagara3")
69
    (eq_attr "type" "call,sibcall,call_no_delay_slot,uncond_branch,branch"))
70
  "niag2_pipe*5")
71
 
72
(define_insn_reservation "niag2_3cycle_load" 3
73
  (and (eq_attr "cpu" "niagara2,niagara3")
74
    (eq_attr "type" "load,fpload"))
75
  "niag2_pipe*3")
76
 
77
(define_insn_reservation "niag2_1cycle_store" 1
78
  (and (eq_attr "cpu" "niagara2,niagara3")
79
    (eq_attr "type" "store,fpstore"))
80
  "niag2_pipe")
81
 
82
(define_insn_reservation "niag2_fp" 6
83
  (and (eq_attr "cpu" "niagara2")
84
    (eq_attr "type" "fpmove,fpcmove,fpcrmove,fpcmp,fpmul"))
85
  "niag2_pipe*6")
86
 
87
(define_insn_reservation "niag3_fp" 9
88
  (and (eq_attr "cpu" "niagara3")
89
    (eq_attr "type" "fpmove,fpcmove,fpcrmove,fpcmp,fpmul"))
90
  "niag2_pipe*9")
91
 
92
(define_insn_reservation "niag2_fdivs" 19
93
  (and (eq_attr "cpu" "niagara2")
94
    (eq_attr "type" "fpdivs"))
95
  "niag2_pipe*19")
96
 
97
(define_insn_reservation "niag3_fdivs" 23
98
  (and (eq_attr "cpu" "niagara3")
99
    (eq_attr "type" "fpdivs"))
100
  "niag2_pipe*23")
101
 
102
(define_insn_reservation "niag2_fdivd" 33
103
  (and (eq_attr "cpu" "niagara2")
104
    (eq_attr "type" "fpdivd"))
105
  "niag2_pipe*33")
106
 
107
(define_insn_reservation "niag3_fdivd" 37
108
  (and (eq_attr "cpu" "niagara3")
109
    (eq_attr "type" "fpdivd"))
110
  "niag2_pipe*37")
111
 
112
(define_insn_reservation "niag2_vis" 6
113
  (and (eq_attr "cpu" "niagara2")
114
    (eq_attr "type" "fga,fgm_pack,fgm_mul,fgm_cmp,fgm_pdist,edge,edgen,array,gsr"))
115
  "niag2_pipe*6")
116
 
117
(define_insn_reservation "niag3_vis" 9
118
  (and (eq_attr "cpu" "niagara3")
119
    (eq_attr "type" "fga,fgm_pack,fgm_mul,fgm_cmp,fgm_pdist,edge,edgen,array,gsr"))
120
  "niag2_pipe*9")

powered by: WebSVN 2.1.0

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