comparison gcc/config/rs6000/603.md @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 77e2b8dfacca
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 ;; Scheduling description for PowerPC 603 processor. 1 ;; Scheduling description for PowerPC 603 processor.
2 ;; Copyright (C) 2003, 2004, 2007, 2009 Free Software Foundation, Inc. 2 ;; Copyright (C) 2003-2017 Free Software Foundation, Inc.
3 ;; 3 ;;
4 ;; This file is part of GCC. 4 ;; This file is part of GCC.
5 5
6 ;; GCC is free software; you can redistribute it and/or modify it 6 ;; GCC is free software; you can redistribute it and/or modify it
7 ;; under the terms of the GNU General Public License as published 7 ;; under the terms of the GNU General Public License as published
36 ;; compare insns but at the expense of a poorer schedule. 36 ;; compare insns but at the expense of a poorer schedule.
37 37
38 ;; CR insns get executed in the SRU. Not modelled. 38 ;; CR insns get executed in the SRU. Not modelled.
39 39
40 (define_insn_reservation "ppc603-load" 2 40 (define_insn_reservation "ppc603-load" 2
41 (and (eq_attr "type" "load,load_ext,load_ux,load_u,load_l") 41 (and (eq_attr "type" "load,load_l")
42 (eq_attr "cpu" "ppc603")) 42 (eq_attr "cpu" "ppc603"))
43 "lsu_603") 43 "lsu_603")
44 44
45 (define_insn_reservation "ppc603-store" 2 45 (define_insn_reservation "ppc603-store" 2
46 (and (eq_attr "type" "store,store_ux,store_u,fpstore,fpstore_ux,fpstore_u") 46 (and (eq_attr "type" "store,fpstore")
47 (eq_attr "cpu" "ppc603")) 47 (eq_attr "cpu" "ppc603"))
48 "lsu_603*2") 48 "lsu_603*2")
49 49
50 (define_insn_reservation "ppc603-fpload" 2 50 (define_insn_reservation "ppc603-fpload" 2
51 (and (eq_attr "type" "fpload,fpload_ux,fpload_u") 51 (and (eq_attr "type" "fpload")
52 (eq_attr "cpu" "ppc603")) 52 (eq_attr "cpu" "ppc603"))
53 "lsu_603") 53 "lsu_603")
54 54
55 (define_insn_reservation "ppc603-storec" 8 55 (define_insn_reservation "ppc603-storec" 8
56 (and (eq_attr "type" "store_c") 56 (and (eq_attr "type" "store_c")
57 (eq_attr "cpu" "ppc603")) 57 (eq_attr "cpu" "ppc603"))
58 "lsu_603") 58 "lsu_603")
59 59
60 (define_insn_reservation "ppc603-integer" 1 60 (define_insn_reservation "ppc603-integer" 1
61 (and (eq_attr "type" "integer,insert_word,insert_dword,shift,trap,\ 61 (and (ior (eq_attr "type" "integer,insert,trap,cntlz,isel")
62 var_shift_rotate,cntlz,exts,isel") 62 (and (eq_attr "type" "add,logical,shift,exts")
63 (eq_attr "dot" "no")))
63 (eq_attr "cpu" "ppc603")) 64 (eq_attr "cpu" "ppc603"))
64 "iu_603") 65 "iu_603")
65 66
66 (define_insn_reservation "ppc603-two" 1 67 (define_insn_reservation "ppc603-two" 1
67 (and (eq_attr "type" "two") 68 (and (eq_attr "type" "two")
73 (eq_attr "cpu" "ppc603")) 74 (eq_attr "cpu" "ppc603"))
74 "iu_603,iu_603,iu_603") 75 "iu_603,iu_603,iu_603")
75 76
76 ; This takes 2 or 3 cycles 77 ; This takes 2 or 3 cycles
77 (define_insn_reservation "ppc603-imul" 3 78 (define_insn_reservation "ppc603-imul" 3
78 (and (eq_attr "type" "imul,imul_compare") 79 (and (eq_attr "type" "mul")
80 (eq_attr "size" "32")
79 (eq_attr "cpu" "ppc603")) 81 (eq_attr "cpu" "ppc603"))
80 "iu_603*2") 82 "iu_603*2")
81 83
82 (define_insn_reservation "ppc603-imul2" 2 84 (define_insn_reservation "ppc603-imul2" 2
83 (and (eq_attr "type" "imul2,imul3") 85 (and (eq_attr "type" "mul")
86 (eq_attr "size" "8,16")
84 (eq_attr "cpu" "ppc603")) 87 (eq_attr "cpu" "ppc603"))
85 "iu_603*2") 88 "iu_603*2")
86 89
87 (define_insn_reservation "ppc603-idiv" 37 90 (define_insn_reservation "ppc603-idiv" 37
88 (and (eq_attr "type" "idiv") 91 (and (eq_attr "type" "div")
89 (eq_attr "cpu" "ppc603")) 92 (eq_attr "cpu" "ppc603"))
90 "iu_603*37") 93 "iu_603*37")
91 94
92 (define_insn_reservation "ppc603-compare" 3 95 (define_insn_reservation "ppc603-compare" 3
93 (and (eq_attr "type" "cmp,fast_compare,compare,delayed_compare,\ 96 (and (ior (eq_attr "type" "cmp")
94 var_delayed_compare") 97 (and (eq_attr "type" "add,logical,shift,exts")
98 (eq_attr "dot" "yes")))
95 (eq_attr "cpu" "ppc603")) 99 (eq_attr "cpu" "ppc603"))
96 "iu_603,nothing,bpu_603") 100 "iu_603,nothing,bpu_603")
97 101
98 (define_insn_reservation "ppc603-fpcompare" 3 102 (define_insn_reservation "ppc603-fpcompare" 3
99 (and (eq_attr "type" "fpcompare") 103 (and (eq_attr "type" "fpcompare")
100 (eq_attr "cpu" "ppc603")) 104 (eq_attr "cpu" "ppc603"))
101 "(fpu_603+iu_603*2),bpu_603") 105 "(fpu_603+iu_603*2),bpu_603")
102 106
103 (define_insn_reservation "ppc603-fp" 3 107 (define_insn_reservation "ppc603-fp" 3
104 (and (eq_attr "type" "fp") 108 (and (eq_attr "type" "fp,fpsimple")
105 (eq_attr "cpu" "ppc603")) 109 (eq_attr "cpu" "ppc603"))
106 "fpu_603") 110 "fpu_603")
107 111
108 (define_insn_reservation "ppc603-dmul" 4 112 (define_insn_reservation "ppc603-dmul" 4
109 (and (eq_attr "type" "dmul") 113 (and (eq_attr "type" "dmul")