1 ;; Scheduling description for IBM PowerPC 403 and PowerPC 405 processors.
2 ;; Copyright (C) 2003 Free Software Foundation, Inc.
4 ;; This file is part of GNU CC.
6 ;; GNU CC 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 2, or (at your option)
11 ;; GNU CC 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.
16 ;; You should have received a copy of the GNU General Public License
17 ;; along with GNU CC; see the file COPYING. If not, write to
18 ;; the Free Software Foundation, 59 Temple Place - Suite 330,
19 ;; Boston, MA 02111-1307, USA.
21 (define_automaton "ppc40x")
22 (define_cpu_unit "iu_40x,bpu_40x" "ppc40x")
24 ;; PPC401 / PPC403 / PPC405 32-bit integer only IU BPU
25 ;; Embedded PowerPC controller
27 ;; Max issue two insns/cycle (includes one branch)
28 (define_insn_reservation "ppc403-load" 2
29 (and (eq_attr "type" "load,load_ext,load_ext_u,load_ext_ux,load_ux,load_u")
30 (eq_attr "cpu" "ppc403,ppc405"))
33 (define_insn_reservation "ppc403-store" 1
34 (and (eq_attr "type" "store,store_ux,store_u")
35 (eq_attr "cpu" "ppc403,ppc405"))
38 (define_insn_reservation "ppc403-integer" 1
39 (and (eq_attr "type" "integer")
40 (eq_attr "cpu" "ppc403,ppc405"))
43 (define_insn_reservation "ppc403-compare" 3
44 (and (eq_attr "type" "cmp,fast_compare,compare,delayed_compare")
45 (eq_attr "cpu" "ppc403,ppc405"))
46 "iu_40x,nothing,bpu_40x")
48 (define_insn_reservation "ppc403-imul" 4
49 (and (eq_attr "type" "imul,imul2,imul3")
50 (eq_attr "cpu" "ppc403"))
53 (define_insn_reservation "ppc405-imul" 5
54 (and (eq_attr "type" "imul")
55 (eq_attr "cpu" "ppc405"))
58 (define_insn_reservation "ppc405-imul2" 3
59 (and (eq_attr "type" "imul2")
60 (eq_attr "cpu" "ppc405"))
63 (define_insn_reservation "ppc405-imul3" 2
64 (and (eq_attr "type" "imul3")
65 (eq_attr "cpu" "ppc405"))
68 (define_insn_reservation "ppc403-idiv" 33
69 (and (eq_attr "type" "idiv")
70 (eq_attr "cpu" "ppc403,ppc405"))
73 (define_insn_reservation "ppc403-mfcr" 2
74 (and (eq_attr "type" "mfcr,mtcr")
75 (eq_attr "cpu" "ppc403,ppc405"))
78 (define_insn_reservation "ppc403-mtjmpr" 4
79 (and (eq_attr "type" "mtjmpr")
80 (eq_attr "cpu" "ppc403,ppc405"))
83 (define_insn_reservation "ppc403-jmpreg" 1
84 (and (eq_attr "type" "jmpreg,branch,cr_logical,delayed_cr")
85 (eq_attr "cpu" "ppc403,ppc405"))