annotate gcc/config/powerpcspe/440.md @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ;; Scheduling description for IBM PowerPC 440 processor.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 ;; Copyright (C) 2003-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 ;;
kono
parents:
diff changeset
4 ;; This file is part of GCC.
kono
parents:
diff changeset
5 ;;
kono
parents:
diff changeset
6 ;; GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
7 ;; it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 ;; the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
9 ;; any later version.
kono
parents:
diff changeset
10 ;;
kono
parents:
diff changeset
11 ;; GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
14 ;; GNU General Public License for more details.
kono
parents:
diff changeset
15 ;;
kono
parents:
diff changeset
16 ;; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 ;; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 ;; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 ;; PPC440 Embedded PowerPC controller
kono
parents:
diff changeset
21 ;; dual issue
kono
parents:
diff changeset
22 ;; i_pipe - complex integer / compare / branch
kono
parents:
diff changeset
23 ;; j_pipe - simple integer arithmetic
kono
parents:
diff changeset
24 ;; l_pipe - load-store
kono
parents:
diff changeset
25 ;; f_pipe - floating point arithmetic
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 (define_automaton "ppc440_core,ppc440_apu")
kono
parents:
diff changeset
28 (define_cpu_unit "ppc440_i_pipe,ppc440_j_pipe,ppc440_l_pipe" "ppc440_core")
kono
parents:
diff changeset
29 (define_cpu_unit "ppc440_f_pipe" "ppc440_apu")
kono
parents:
diff changeset
30 (define_cpu_unit "ppc440_issue_0,ppc440_issue_1" "ppc440_core")
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 (define_reservation "ppc440_issue" "ppc440_issue_0|ppc440_issue_1")
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 (define_insn_reservation "ppc440-load" 3
kono
parents:
diff changeset
36 (and (eq_attr "type" "load,load_l,store_c,sync")
kono
parents:
diff changeset
37 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
38 "ppc440_issue,ppc440_l_pipe")
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 (define_insn_reservation "ppc440-store" 3
kono
parents:
diff changeset
41 (and (eq_attr "type" "store")
kono
parents:
diff changeset
42 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
43 "ppc440_issue,ppc440_l_pipe")
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 (define_insn_reservation "ppc440-fpload" 4
kono
parents:
diff changeset
46 (and (eq_attr "type" "fpload")
kono
parents:
diff changeset
47 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
48 "ppc440_issue,ppc440_l_pipe")
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 (define_insn_reservation "ppc440-fpstore" 3
kono
parents:
diff changeset
51 (and (eq_attr "type" "fpstore")
kono
parents:
diff changeset
52 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
53 "ppc440_issue,ppc440_l_pipe")
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 (define_insn_reservation "ppc440-integer" 1
kono
parents:
diff changeset
56 (and (ior (eq_attr "type" "integer,insert,trap,cntlz,isel")
kono
parents:
diff changeset
57 (and (eq_attr "type" "add,logical,shift,exts")
kono
parents:
diff changeset
58 (eq_attr "dot" "no")))
kono
parents:
diff changeset
59 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
60 "ppc440_issue,ppc440_i_pipe|ppc440_j_pipe")
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 (define_insn_reservation "ppc440-two" 1
kono
parents:
diff changeset
63 (and (eq_attr "type" "two")
kono
parents:
diff changeset
64 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
65 "ppc440_issue_0+ppc440_issue_1,\
kono
parents:
diff changeset
66 ppc440_i_pipe|ppc440_j_pipe,ppc440_i_pipe|ppc440_j_pipe")
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 (define_insn_reservation "ppc440-three" 1
kono
parents:
diff changeset
69 (and (eq_attr "type" "three")
kono
parents:
diff changeset
70 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
71 "ppc440_issue_0+ppc440_issue_1,ppc440_i_pipe|ppc440_j_pipe,\
kono
parents:
diff changeset
72 ppc440_i_pipe|ppc440_j_pipe,ppc440_i_pipe|ppc440_j_pipe")
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 (define_insn_reservation "ppc440-imul" 3
kono
parents:
diff changeset
75 (and (eq_attr "type" "mul")
kono
parents:
diff changeset
76 (eq_attr "size" "32")
kono
parents:
diff changeset
77 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
78 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 (define_insn_reservation "ppc440-imul2" 2
kono
parents:
diff changeset
81 (and (ior (eq_attr "type" "halfmul")
kono
parents:
diff changeset
82 (and (eq_attr "type" "mul")
kono
parents:
diff changeset
83 (eq_attr "size" "8,16")))
kono
parents:
diff changeset
84 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
85 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 (define_insn_reservation "ppc440-idiv" 34
kono
parents:
diff changeset
88 (and (eq_attr "type" "div")
kono
parents:
diff changeset
89 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
90 "ppc440_issue,ppc440_i_pipe*33")
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 (define_insn_reservation "ppc440-branch" 1
kono
parents:
diff changeset
93 (and (eq_attr "type" "branch,jmpreg,isync")
kono
parents:
diff changeset
94 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
95 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 (define_insn_reservation "ppc440-compare" 2
kono
parents:
diff changeset
98 (and (ior (eq_attr "type" "cmp,cr_logical,delayed_cr,mfcr")
kono
parents:
diff changeset
99 (and (eq_attr "type" "add,logical,shift,exts")
kono
parents:
diff changeset
100 (eq_attr "dot" "yes")))
kono
parents:
diff changeset
101 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
102 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
103
kono
parents:
diff changeset
104 (define_insn_reservation "ppc440-fpcompare" 3 ; 2
kono
parents:
diff changeset
105 (and (eq_attr "type" "fpcompare")
kono
parents:
diff changeset
106 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
107 "ppc440_issue,ppc440_f_pipe+ppc440_i_pipe")
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109 (define_insn_reservation "ppc440-fp" 5
kono
parents:
diff changeset
110 (and (eq_attr "type" "fp,fpsimple,dmul")
kono
parents:
diff changeset
111 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
112 "ppc440_issue,ppc440_f_pipe")
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 (define_insn_reservation "ppc440-sdiv" 19
kono
parents:
diff changeset
115 (and (eq_attr "type" "sdiv")
kono
parents:
diff changeset
116 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
117 "ppc440_issue,ppc440_f_pipe*15")
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 (define_insn_reservation "ppc440-ddiv" 33
kono
parents:
diff changeset
120 (and (eq_attr "type" "ddiv")
kono
parents:
diff changeset
121 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
122 "ppc440_issue,ppc440_f_pipe*29")
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 (define_insn_reservation "ppc440-mtcr" 3
kono
parents:
diff changeset
125 (and (eq_attr "type" "mtcr")
kono
parents:
diff changeset
126 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
127 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
128
kono
parents:
diff changeset
129 (define_insn_reservation "ppc440-mtjmpr" 4
kono
parents:
diff changeset
130 (and (eq_attr "type" "mtjmpr")
kono
parents:
diff changeset
131 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
132 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 (define_insn_reservation "ppc440-mfjmpr" 2
kono
parents:
diff changeset
135 (and (eq_attr "type" "mfjmpr")
kono
parents:
diff changeset
136 (eq_attr "cpu" "ppc440"))
kono
parents:
diff changeset
137 "ppc440_issue,ppc440_i_pipe")
kono
parents:
diff changeset
138