annotate gcc/config/powerpcspe/40x.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 403 and PowerPC 405 processors.
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 it
kono
parents:
diff changeset
7 ;; under the terms of the GNU General Public License as published
kono
parents:
diff changeset
8 ;; by the Free Software Foundation; either version 3, or (at your
kono
parents:
diff changeset
9 ;; option) any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 ;; GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
12 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
13 ;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
14 ;; 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 (define_automaton "ppc40x,ppc40xiu")
kono
parents:
diff changeset
21 (define_cpu_unit "bpu_40x,fpu_405" "ppc40x")
kono
parents:
diff changeset
22 (define_cpu_unit "iu_40x" "ppc40xiu")
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 ;; PPC401 / PPC403 / PPC405 32-bit integer only IU BPU
kono
parents:
diff changeset
25 ;; Embedded PowerPC controller
kono
parents:
diff changeset
26 ;; In-order execution
kono
parents:
diff changeset
27 ;; Max issue two insns/cycle (includes one branch)
kono
parents:
diff changeset
28 (define_insn_reservation "ppc403-load" 2
kono
parents:
diff changeset
29 (and (eq_attr "type" "load,load_l,store_c,sync")
kono
parents:
diff changeset
30 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
31 "iu_40x")
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 (define_insn_reservation "ppc403-store" 2
kono
parents:
diff changeset
34 (and (eq_attr "type" "store")
kono
parents:
diff changeset
35 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
36 "iu_40x")
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 (define_insn_reservation "ppc403-integer" 1
kono
parents:
diff changeset
39 (and (ior (eq_attr "type" "integer,insert,trap,cntlz,isel")
kono
parents:
diff changeset
40 (and (eq_attr "type" "add,logical,shift,exts")
kono
parents:
diff changeset
41 (eq_attr "dot" "no")))
kono
parents:
diff changeset
42 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
43 "iu_40x")
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 (define_insn_reservation "ppc403-two" 1
kono
parents:
diff changeset
46 (and (eq_attr "type" "two")
kono
parents:
diff changeset
47 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
48 "iu_40x,iu_40x")
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 (define_insn_reservation "ppc403-three" 1
kono
parents:
diff changeset
51 (and (eq_attr "type" "three")
kono
parents:
diff changeset
52 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
53 "iu_40x,iu_40x,iu_40x")
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 (define_insn_reservation "ppc403-compare" 3
kono
parents:
diff changeset
56 (and (ior (eq_attr "type" "cmp")
kono
parents:
diff changeset
57 (and (eq_attr "type" "add,logical,shift,exts")
kono
parents:
diff changeset
58 (eq_attr "dot" "yes")))
kono
parents:
diff changeset
59 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
60 "iu_40x,nothing,bpu_40x")
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 (define_insn_reservation "ppc403-imul" 4
kono
parents:
diff changeset
63 (and (eq_attr "type" "mul")
kono
parents:
diff changeset
64 (eq_attr "cpu" "ppc403"))
kono
parents:
diff changeset
65 "iu_40x*4")
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 (define_insn_reservation "ppc405-imul" 5
kono
parents:
diff changeset
68 (and (eq_attr "type" "mul")
kono
parents:
diff changeset
69 (eq_attr "size" "32")
kono
parents:
diff changeset
70 (eq_attr "cpu" "ppc405"))
kono
parents:
diff changeset
71 "iu_40x*4")
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 (define_insn_reservation "ppc405-imul2" 3
kono
parents:
diff changeset
74 (and (eq_attr "type" "mul")
kono
parents:
diff changeset
75 (eq_attr "size" "16")
kono
parents:
diff changeset
76 (eq_attr "cpu" "ppc405"))
kono
parents:
diff changeset
77 "iu_40x*2")
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 (define_insn_reservation "ppc405-imul3" 2
kono
parents:
diff changeset
80 (and (ior (eq_attr "type" "halfmul")
kono
parents:
diff changeset
81 (and (eq_attr "type" "mul")
kono
parents:
diff changeset
82 (eq_attr "size" "8")))
kono
parents:
diff changeset
83 (eq_attr "cpu" "ppc405"))
kono
parents:
diff changeset
84 "iu_40x")
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 (define_insn_reservation "ppc403-idiv" 33
kono
parents:
diff changeset
87 (and (eq_attr "type" "div")
kono
parents:
diff changeset
88 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
89 "iu_40x*33")
kono
parents:
diff changeset
90
kono
parents:
diff changeset
91 (define_insn_reservation "ppc403-mfcr" 2
kono
parents:
diff changeset
92 (and (eq_attr "type" "mfcr")
kono
parents:
diff changeset
93 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
94 "iu_40x")
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96 (define_insn_reservation "ppc403-mtcr" 3
kono
parents:
diff changeset
97 (and (eq_attr "type" "mtcr")
kono
parents:
diff changeset
98 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
99 "iu_40x")
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101 (define_insn_reservation "ppc403-mtjmpr" 4
kono
parents:
diff changeset
102 (and (eq_attr "type" "mtjmpr")
kono
parents:
diff changeset
103 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
104 "iu_40x")
kono
parents:
diff changeset
105
kono
parents:
diff changeset
106 (define_insn_reservation "ppc403-mfjmpr" 2
kono
parents:
diff changeset
107 (and (eq_attr "type" "mfjmpr")
kono
parents:
diff changeset
108 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
109 "iu_40x")
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 (define_insn_reservation "ppc403-jmpreg" 1
kono
parents:
diff changeset
112 (and (eq_attr "type" "jmpreg,branch,isync")
kono
parents:
diff changeset
113 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
114 "bpu_40x")
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 (define_insn_reservation "ppc403-cr" 2
kono
parents:
diff changeset
117 (and (eq_attr "type" "cr_logical,delayed_cr")
kono
parents:
diff changeset
118 (eq_attr "cpu" "ppc403,ppc405"))
kono
parents:
diff changeset
119 "bpu_40x")
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 (define_insn_reservation "ppc405-float" 11
kono
parents:
diff changeset
122 (and (eq_attr "type" "fpload,fpstore,fpcompare,fp,fpsimple,dmul,sdiv,ddiv")
kono
parents:
diff changeset
123 (eq_attr "cpu" "ppc405"))
kono
parents:
diff changeset
124 "fpu_405*10")