annotate gcc/config/aarch64/thunderx2t99.md @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ;; Cavium ThunderX 2 CN99xx pipeline description
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 ;; Copyright (C) 2016-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 ;;
kono
parents:
diff changeset
4 ;; Contributed by Cavium, Broadcom and Mentor Embedded.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 ;; This file is part of GCC.
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 ;; GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
9 ;; it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
10 ;; the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
11 ;; any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 ;; GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
16 ;; GNU General Public License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 ;; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
19 ;; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
20 ;; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 (define_automaton "thunderx2t99, thunderx2t99_advsimd, thunderx2t99_ldst")
kono
parents:
diff changeset
23 (define_automaton "thunderx2t99_mult")
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 (define_cpu_unit "thunderx2t99_i0" "thunderx2t99")
kono
parents:
diff changeset
26 (define_cpu_unit "thunderx2t99_i1" "thunderx2t99")
kono
parents:
diff changeset
27 (define_cpu_unit "thunderx2t99_i2" "thunderx2t99")
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 (define_cpu_unit "thunderx2t99_ls0" "thunderx2t99_ldst")
kono
parents:
diff changeset
30 (define_cpu_unit "thunderx2t99_ls1" "thunderx2t99_ldst")
kono
parents:
diff changeset
31 (define_cpu_unit "thunderx2t99_sd" "thunderx2t99_ldst")
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 ; Pseudo-units for multiply pipeline.
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 (define_cpu_unit "thunderx2t99_i1m1" "thunderx2t99_mult")
kono
parents:
diff changeset
36 (define_cpu_unit "thunderx2t99_i1m2" "thunderx2t99_mult")
kono
parents:
diff changeset
37 (define_cpu_unit "thunderx2t99_i1m3" "thunderx2t99_mult")
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 ; Pseudo-units for load delay (assuming dcache hit).
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 (define_cpu_unit "thunderx2t99_ls0d1" "thunderx2t99_ldst")
kono
parents:
diff changeset
42 (define_cpu_unit "thunderx2t99_ls0d2" "thunderx2t99_ldst")
kono
parents:
diff changeset
43 (define_cpu_unit "thunderx2t99_ls0d3" "thunderx2t99_ldst")
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 (define_cpu_unit "thunderx2t99_ls1d1" "thunderx2t99_ldst")
kono
parents:
diff changeset
46 (define_cpu_unit "thunderx2t99_ls1d2" "thunderx2t99_ldst")
kono
parents:
diff changeset
47 (define_cpu_unit "thunderx2t99_ls1d3" "thunderx2t99_ldst")
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 ; Make some aliases for f0/f1.
kono
parents:
diff changeset
50 (define_cpu_unit "thunderx2t99_f0" "thunderx2t99_advsimd")
kono
parents:
diff changeset
51 (define_cpu_unit "thunderx2t99_f1" "thunderx2t99_advsimd")
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 (define_reservation "thunderx2t99_i012" "thunderx2t99_i0|thunderx2t99_i1|thunderx2t99_i2")
kono
parents:
diff changeset
54 (define_reservation "thunderx2t99_ls01" "thunderx2t99_ls0|thunderx2t99_ls1")
kono
parents:
diff changeset
55 (define_reservation "thunderx2t99_f01" "thunderx2t99_f0|thunderx2t99_f1")
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 ; A load with delay in the ls0/ls1 pipes.
kono
parents:
diff changeset
58 (define_reservation "thunderx2t99_l0delay" "thunderx2t99_ls0,\
kono
parents:
diff changeset
59 thunderx2t99_ls0d1,thunderx2t99_ls0d2,\
kono
parents:
diff changeset
60 thunderx2t99_ls0d3")
kono
parents:
diff changeset
61 (define_reservation "thunderx2t99_l1delay" "thunderx2t99_ls1,\
kono
parents:
diff changeset
62 thunderx2t99_ls1d1,thunderx2t99_ls1d2,\
kono
parents:
diff changeset
63 thunderx2t99_ls1d3")
kono
parents:
diff changeset
64 (define_reservation "thunderx2t99_l01delay" "thunderx2t99_l0delay|thunderx2t99_l1delay")
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 ;; Branch and call instructions.
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 (define_insn_reservation "thunderx2t99_branch" 1
kono
parents:
diff changeset
69 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
70 (eq_attr "type" "call,branch,trap"))
111
kono
parents:
diff changeset
71 "thunderx2t99_i2")
kono
parents:
diff changeset
72
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
73 ;; Misc instructions.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
74
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
75 (define_insn_reservation "thunderx2t99_nothing" 0
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
76 (and (eq_attr "tune" "thunderx2t99")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
77 (eq_attr "type" "no_insn,block"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
78 "nothing")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
79
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
80 (define_insn_reservation "thunderx2t99_mrs" 0
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
81 (and (eq_attr "tune" "thunderx2t99")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
82 (eq_attr "type" "mrs"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
83 "thunderx2t99_i2")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
84
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
85 (define_insn_reservation "thunderx2t99_multiple" 1
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
86 (and (eq_attr "tune" "thunderx2t99")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
87 (eq_attr "type" "multiple,untyped"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
88 "thunderx2t99_i0+thunderx2t99_i1+thunderx2t99_i2+thunderx2t99_ls0+\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
89 thunderx2t99_ls1+thunderx2t99_sd+thunderx2t99_i1m1+thunderx2t99_i1m2+\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
90 thunderx2t99_i1m3+thunderx2t99_f0+thunderx2t99_f1")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
91
111
kono
parents:
diff changeset
92 ;; Integer arithmetic/logic instructions.
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 ; Plain register moves are handled by renaming, and don't create any uops.
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96 (define_insn_reservation "thunderx2t99_regmove" 0
kono
parents:
diff changeset
97 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
98 (eq_attr "type" "mov_reg"))
kono
parents:
diff changeset
99 "nothing")
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101 (define_insn_reservation "thunderx2t99_alu_basic" 1
kono
parents:
diff changeset
102 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
103 (eq_attr "type" "alu_imm,alu_sreg,alus_imm,alus_sreg,\
kono
parents:
diff changeset
104 adc_reg,adc_imm,adcs_reg,adcs_imm,\
kono
parents:
diff changeset
105 logic_reg,logic_imm,logics_reg,logics_imm,\
kono
parents:
diff changeset
106 csel,adr,mov_imm,shift_reg,shift_imm,bfm,\
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
107 bfx,rbit,rev,extend,rotate_imm"))
111
kono
parents:
diff changeset
108 "thunderx2t99_i012")
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 (define_insn_reservation "thunderx2t99_alu_shift" 2
kono
parents:
diff changeset
111 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
112 (eq_attr "type" "alu_shift_imm,alu_ext,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
113 alus_shift_imm,alus_ext,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
114 logic_shift_imm,logics_shift_imm"))
111
kono
parents:
diff changeset
115 "thunderx2t99_i012,thunderx2t99_i012")
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 (define_insn_reservation "thunderx2t99_div" 13
kono
parents:
diff changeset
118 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
119 (eq_attr "type" "sdiv,udiv"))
kono
parents:
diff changeset
120 "thunderx2t99_i1*3")
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 (define_insn_reservation "thunderx2t99_madd" 5
kono
parents:
diff changeset
123 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
124 (eq_attr "type" "mla,smlal,umlal"))
kono
parents:
diff changeset
125 "thunderx2t99_i1,thunderx2t99_i1m1,thunderx2t99_i1m2,thunderx2t99_i1m3,\
kono
parents:
diff changeset
126 thunderx2t99_i012")
kono
parents:
diff changeset
127
kono
parents:
diff changeset
128 ; NOTE: smull, umull are used for "high part" multiplies too.
kono
parents:
diff changeset
129 (define_insn_reservation "thunderx2t99_mul" 4
kono
parents:
diff changeset
130 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
131 (eq_attr "type" "mul,smull,umull"))
kono
parents:
diff changeset
132 "thunderx2t99_i1,thunderx2t99_i1m1,thunderx2t99_i1m2,thunderx2t99_i1m3")
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 (define_insn_reservation "thunderx2t99_countbits" 3
kono
parents:
diff changeset
135 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
136 (eq_attr "type" "clz"))
kono
parents:
diff changeset
137 "thunderx2t99_i1")
kono
parents:
diff changeset
138
kono
parents:
diff changeset
139 ;; Integer loads and stores.
kono
parents:
diff changeset
140
kono
parents:
diff changeset
141 (define_insn_reservation "thunderx2t99_load_basic" 4
kono
parents:
diff changeset
142 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
143 (eq_attr "type" "load_4"))
kono
parents:
diff changeset
144 "thunderx2t99_ls01")
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 (define_insn_reservation "thunderx2t99_loadpair" 5
kono
parents:
diff changeset
147 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
148 (eq_attr "type" "load_8,load_16"))
kono
parents:
diff changeset
149 "thunderx2t99_i012,thunderx2t99_ls01")
kono
parents:
diff changeset
150
kono
parents:
diff changeset
151 (define_insn_reservation "thunderx2t99_store_basic" 1
kono
parents:
diff changeset
152 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
153 (eq_attr "type" "store_4"))
kono
parents:
diff changeset
154 "thunderx2t99_ls01,thunderx2t99_sd")
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 (define_insn_reservation "thunderx2t99_storepair_basic" 1
kono
parents:
diff changeset
157 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
158 (eq_attr "type" "store_8,store_16"))
kono
parents:
diff changeset
159 "thunderx2t99_ls01,thunderx2t99_sd")
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 ;; FP data processing instructions.
kono
parents:
diff changeset
162
kono
parents:
diff changeset
163 (define_insn_reservation "thunderx2t99_fp_simple" 5
kono
parents:
diff changeset
164 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
165 (eq_attr "type" "ffariths,ffarithd,f_minmaxs,f_minmaxd"))
kono
parents:
diff changeset
166 "thunderx2t99_f01")
kono
parents:
diff changeset
167
kono
parents:
diff changeset
168 (define_insn_reservation "thunderx2t99_fp_addsub" 6
kono
parents:
diff changeset
169 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
170 (eq_attr "type" "fadds,faddd"))
kono
parents:
diff changeset
171 "thunderx2t99_f01")
kono
parents:
diff changeset
172
kono
parents:
diff changeset
173 (define_insn_reservation "thunderx2t99_fp_cmp" 5
kono
parents:
diff changeset
174 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
175 (eq_attr "type" "fcmps,fcmpd,fccmps,fccmpd"))
111
kono
parents:
diff changeset
176 "thunderx2t99_f01")
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 (define_insn_reservation "thunderx2t99_fp_divsqrt_s" 16
kono
parents:
diff changeset
179 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
180 (eq_attr "type" "fdivs,fsqrts"))
kono
parents:
diff changeset
181 "thunderx2t99_f0*3|thunderx2t99_f1*3")
kono
parents:
diff changeset
182
kono
parents:
diff changeset
183 (define_insn_reservation "thunderx2t99_fp_divsqrt_d" 23
kono
parents:
diff changeset
184 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
185 (eq_attr "type" "fdivd,fsqrtd"))
kono
parents:
diff changeset
186 "thunderx2t99_f0*5|thunderx2t99_f1*5")
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 (define_insn_reservation "thunderx2t99_fp_mul_mac" 6
kono
parents:
diff changeset
189 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
190 (eq_attr "type" "fmuls,fmuld,fmacs,fmacd"))
kono
parents:
diff changeset
191 "thunderx2t99_f01")
kono
parents:
diff changeset
192
kono
parents:
diff changeset
193 (define_insn_reservation "thunderx2t99_frint" 7
kono
parents:
diff changeset
194 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
195 (eq_attr "type" "f_rints,f_rintd"))
kono
parents:
diff changeset
196 "thunderx2t99_f01")
kono
parents:
diff changeset
197
kono
parents:
diff changeset
198 (define_insn_reservation "thunderx2t99_fcsel" 4
kono
parents:
diff changeset
199 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
200 (eq_attr "type" "fcsel"))
kono
parents:
diff changeset
201 "thunderx2t99_f01")
kono
parents:
diff changeset
202
kono
parents:
diff changeset
203 ;; FP miscellaneous instructions.
kono
parents:
diff changeset
204
kono
parents:
diff changeset
205 (define_insn_reservation "thunderx2t99_fp_cvt" 7
kono
parents:
diff changeset
206 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
207 (eq_attr "type" "f_cvtf2i,f_cvt,f_cvti2f"))
kono
parents:
diff changeset
208 "thunderx2t99_f01")
kono
parents:
diff changeset
209
kono
parents:
diff changeset
210 (define_insn_reservation "thunderx2t99_fp_mov" 4
kono
parents:
diff changeset
211 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
212 (eq_attr "type" "fconsts,fconstd,fmov,f_mrc"))
kono
parents:
diff changeset
213 "thunderx2t99_f01")
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 (define_insn_reservation "thunderx2t99_fp_mov_to_gen" 5
kono
parents:
diff changeset
216 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
217 (eq_attr "type" "f_mcr"))
kono
parents:
diff changeset
218 "thunderx2t99_f01")
kono
parents:
diff changeset
219
kono
parents:
diff changeset
220 ;; FP loads and stores.
kono
parents:
diff changeset
221
kono
parents:
diff changeset
222 (define_insn_reservation "thunderx2t99_fp_load_basic" 4
kono
parents:
diff changeset
223 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
224 (eq_attr "type" "f_loads,f_loadd"))
kono
parents:
diff changeset
225 "thunderx2t99_ls01")
kono
parents:
diff changeset
226
kono
parents:
diff changeset
227 (define_insn_reservation "thunderx2t99_fp_store_basic" 1
kono
parents:
diff changeset
228 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
229 (eq_attr "type" "f_stores,f_stored"))
kono
parents:
diff changeset
230 "thunderx2t99_ls01,thunderx2t99_sd")
kono
parents:
diff changeset
231
kono
parents:
diff changeset
232 ;; ASIMD integer instructions.
kono
parents:
diff changeset
233
kono
parents:
diff changeset
234 (define_insn_reservation "thunderx2t99_asimd_int" 7
kono
parents:
diff changeset
235 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
236 (eq_attr "type" "neon_abd,neon_abd_q,\
kono
parents:
diff changeset
237 neon_arith_acc,neon_arith_acc_q,\
kono
parents:
diff changeset
238 neon_abs,neon_abs_q,\
kono
parents:
diff changeset
239 neon_add,neon_add_q,\
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
240 neon_sub,neon_sub_q,\
111
kono
parents:
diff changeset
241 neon_neg,neon_neg_q,\
kono
parents:
diff changeset
242 neon_add_long,neon_add_widen,\
kono
parents:
diff changeset
243 neon_add_halve,neon_add_halve_q,\
kono
parents:
diff changeset
244 neon_sub_long,neon_sub_widen,\
kono
parents:
diff changeset
245 neon_sub_halve,neon_sub_halve_q,\
kono
parents:
diff changeset
246 neon_add_halve_narrow_q,neon_sub_halve_narrow_q,\
kono
parents:
diff changeset
247 neon_qabs,neon_qabs_q,\
kono
parents:
diff changeset
248 neon_qadd,neon_qadd_q,\
kono
parents:
diff changeset
249 neon_qneg,neon_qneg_q,\
kono
parents:
diff changeset
250 neon_qsub,neon_qsub_q,\
kono
parents:
diff changeset
251 neon_minmax,neon_minmax_q,\
kono
parents:
diff changeset
252 neon_reduc_minmax,neon_reduc_minmax_q,\
kono
parents:
diff changeset
253 neon_mul_b,neon_mul_h,neon_mul_s,\
kono
parents:
diff changeset
254 neon_mul_b_q,neon_mul_h_q,neon_mul_s_q,\
kono
parents:
diff changeset
255 neon_sat_mul_b,neon_sat_mul_h,neon_sat_mul_s,\
kono
parents:
diff changeset
256 neon_sat_mul_b_q,neon_sat_mul_h_q,neon_sat_mul_s_q,\
kono
parents:
diff changeset
257 neon_mla_b,neon_mla_h,neon_mla_s,\
kono
parents:
diff changeset
258 neon_mla_b_q,neon_mla_h_q,neon_mla_s_q,\
kono
parents:
diff changeset
259 neon_mul_b_long,neon_mul_h_long,\
kono
parents:
diff changeset
260 neon_mul_s_long,neon_mul_d_long,\
kono
parents:
diff changeset
261 neon_sat_mul_b_long,neon_sat_mul_h_long,\
kono
parents:
diff changeset
262 neon_sat_mul_s_long,\
kono
parents:
diff changeset
263 neon_mla_b_long,neon_mla_h_long,neon_mla_s_long,\
kono
parents:
diff changeset
264 neon_sat_mla_b_long,neon_sat_mla_h_long,\
kono
parents:
diff changeset
265 neon_sat_mla_s_long,\
kono
parents:
diff changeset
266 neon_shift_acc,neon_shift_acc_q,\
kono
parents:
diff changeset
267 neon_shift_imm,neon_shift_imm_q,\
kono
parents:
diff changeset
268 neon_shift_reg,neon_shift_reg_q,\
kono
parents:
diff changeset
269 neon_shift_imm_long,neon_shift_imm_narrow_q,\
kono
parents:
diff changeset
270 neon_sat_shift_imm,neon_sat_shift_imm_q,\
kono
parents:
diff changeset
271 neon_sat_shift_reg,neon_sat_shift_reg_q,\
kono
parents:
diff changeset
272 neon_sat_shift_imm_narrow_q"))
kono
parents:
diff changeset
273 "thunderx2t99_f01")
kono
parents:
diff changeset
274
kono
parents:
diff changeset
275 (define_insn_reservation "thunderx2t99_asimd_reduc_add" 5
kono
parents:
diff changeset
276 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
277 (eq_attr "type" "neon_reduc_add,neon_reduc_add_q"))
kono
parents:
diff changeset
278 "thunderx2t99_f01")
kono
parents:
diff changeset
279
kono
parents:
diff changeset
280 (define_insn_reservation "thunderx2t99_asimd_cmp" 7
kono
parents:
diff changeset
281 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
282 (eq_attr "type" "neon_compare,neon_compare_q,neon_compare_zero,\
kono
parents:
diff changeset
283 neon_tst,neon_tst_q"))
kono
parents:
diff changeset
284 "thunderx2t99_f01")
kono
parents:
diff changeset
285
kono
parents:
diff changeset
286 (define_insn_reservation "thunderx2t99_asimd_logic" 5
kono
parents:
diff changeset
287 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
288 (eq_attr "type" "neon_logic,neon_logic_q"))
kono
parents:
diff changeset
289 "thunderx2t99_f01")
kono
parents:
diff changeset
290
kono
parents:
diff changeset
291 ;; ASIMD floating-point instructions.
kono
parents:
diff changeset
292
kono
parents:
diff changeset
293 (define_insn_reservation "thunderx2t99_asimd_fp_simple" 5
kono
parents:
diff changeset
294 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
295 (eq_attr "type" "neon_fp_abs_s,neon_fp_abs_d,\
kono
parents:
diff changeset
296 neon_fp_abs_s_q,neon_fp_abs_d_q,\
kono
parents:
diff changeset
297 neon_fp_compare_s,neon_fp_compare_d,\
kono
parents:
diff changeset
298 neon_fp_compare_s_q,neon_fp_compare_d_q,\
kono
parents:
diff changeset
299 neon_fp_minmax_s,neon_fp_minmax_d,\
kono
parents:
diff changeset
300 neon_fp_minmax_s_q,neon_fp_minmax_d_q,\
kono
parents:
diff changeset
301 neon_fp_reduc_minmax_s,neon_fp_reduc_minmax_d,\
kono
parents:
diff changeset
302 neon_fp_reduc_minmax_s_q,neon_fp_reduc_minmax_d_q,\
kono
parents:
diff changeset
303 neon_fp_neg_s,neon_fp_neg_d,\
kono
parents:
diff changeset
304 neon_fp_neg_s_q,neon_fp_neg_d_q"))
kono
parents:
diff changeset
305 "thunderx2t99_f01")
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 (define_insn_reservation "thunderx2t99_asimd_fp_arith" 6
kono
parents:
diff changeset
308 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
309 (eq_attr "type" "neon_fp_abd_s,neon_fp_abd_d,\
kono
parents:
diff changeset
310 neon_fp_abd_s_q,neon_fp_abd_d_q,\
kono
parents:
diff changeset
311 neon_fp_addsub_s,neon_fp_addsub_d,\
kono
parents:
diff changeset
312 neon_fp_addsub_s_q,neon_fp_addsub_d_q,\
kono
parents:
diff changeset
313 neon_fp_reduc_add_s,neon_fp_reduc_add_d,\
kono
parents:
diff changeset
314 neon_fp_reduc_add_s_q,neon_fp_reduc_add_d_q,\
kono
parents:
diff changeset
315 neon_fp_mul_s,neon_fp_mul_d,\
kono
parents:
diff changeset
316 neon_fp_mul_s_q,neon_fp_mul_d_q,\
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
317 neon_fp_mul_s_scalar_q,neon_fp_mul_d_scalar_q,\
111
kono
parents:
diff changeset
318 neon_fp_mla_s,neon_fp_mla_d,\
kono
parents:
diff changeset
319 neon_fp_mla_s_q,neon_fp_mla_d_q"))
kono
parents:
diff changeset
320 "thunderx2t99_f01")
kono
parents:
diff changeset
321
kono
parents:
diff changeset
322 (define_insn_reservation "thunderx2t99_asimd_fp_conv" 7
kono
parents:
diff changeset
323 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
324 (eq_attr "type" "neon_fp_cvt_widen_s,neon_fp_cvt_narrow_d_q,\
kono
parents:
diff changeset
325 neon_fp_to_int_s,neon_fp_to_int_d,\
kono
parents:
diff changeset
326 neon_fp_to_int_s_q,neon_fp_to_int_d_q,\
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
327 neon_int_to_fp_s,neon_int_to_fp_d,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
328 neon_int_to_fp_s_q,neon_int_to_fp_d_q,\
111
kono
parents:
diff changeset
329 neon_fp_round_s,neon_fp_round_d,\
kono
parents:
diff changeset
330 neon_fp_round_s_q,neon_fp_round_d_q"))
kono
parents:
diff changeset
331 "thunderx2t99_f01")
kono
parents:
diff changeset
332
kono
parents:
diff changeset
333 (define_insn_reservation "thunderx2t99_asimd_fp_div_s" 16
kono
parents:
diff changeset
334 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
335 (eq_attr "type" "neon_fp_div_s,neon_fp_div_s_q"))
kono
parents:
diff changeset
336 "thunderx2t99_f01")
kono
parents:
diff changeset
337
kono
parents:
diff changeset
338 (define_insn_reservation "thunderx2t99_asimd_fp_div_d" 23
kono
parents:
diff changeset
339 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
340 (eq_attr "type" "neon_fp_div_d,neon_fp_div_d_q"))
kono
parents:
diff changeset
341 "thunderx2t99_f01")
kono
parents:
diff changeset
342
kono
parents:
diff changeset
343 ;; ASIMD miscellaneous instructions.
kono
parents:
diff changeset
344
kono
parents:
diff changeset
345 (define_insn_reservation "thunderx2t99_asimd_misc" 5
kono
parents:
diff changeset
346 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
347 (eq_attr "type" "neon_rbit,\
kono
parents:
diff changeset
348 neon_bsl,neon_bsl_q,\
kono
parents:
diff changeset
349 neon_cls,neon_cls_q,\
kono
parents:
diff changeset
350 neon_cnt,neon_cnt_q,\
kono
parents:
diff changeset
351 neon_from_gp,neon_from_gp_q,\
kono
parents:
diff changeset
352 neon_dup,neon_dup_q,\
kono
parents:
diff changeset
353 neon_ext,neon_ext_q,\
kono
parents:
diff changeset
354 neon_ins,neon_ins_q,\
kono
parents:
diff changeset
355 neon_move,neon_move_q,\
kono
parents:
diff changeset
356 neon_fp_recpe_s,neon_fp_recpe_d,\
kono
parents:
diff changeset
357 neon_fp_recpe_s_q,neon_fp_recpe_d_q,\
kono
parents:
diff changeset
358 neon_fp_recpx_s,neon_fp_recpx_d,\
kono
parents:
diff changeset
359 neon_fp_recpx_s_q,neon_fp_recpx_d_q,\
kono
parents:
diff changeset
360 neon_rev,neon_rev_q,\
kono
parents:
diff changeset
361 neon_permute,neon_permute_q"))
kono
parents:
diff changeset
362 "thunderx2t99_f01")
kono
parents:
diff changeset
363
kono
parents:
diff changeset
364 (define_insn_reservation "thunderx2t99_asimd_recip_step" 6
kono
parents:
diff changeset
365 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
366 (eq_attr "type" "neon_fp_recps_s,neon_fp_recps_s_q,\
kono
parents:
diff changeset
367 neon_fp_recps_d,neon_fp_recps_d_q,\
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
368 neon_fp_sqrt_s,neon_fp_sqrt_s_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
369 neon_fp_sqrt_d,neon_fp_sqrt_d_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
370 neon_fp_rsqrte_s, neon_fp_rsqrte_s_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
371 neon_fp_rsqrte_d, neon_fp_rsqrte_d_q,\
111
kono
parents:
diff changeset
372 neon_fp_rsqrts_s, neon_fp_rsqrts_s_q,\
kono
parents:
diff changeset
373 neon_fp_rsqrts_d, neon_fp_rsqrts_d_q"))
kono
parents:
diff changeset
374 "thunderx2t99_f01")
kono
parents:
diff changeset
375
kono
parents:
diff changeset
376 (define_insn_reservation "thunderx2t99_asimd_lut" 8
kono
parents:
diff changeset
377 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
378 (eq_attr "type" "neon_tbl1,neon_tbl1_q,neon_tbl2,neon_tbl2_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
379 neon_tbl3,neon_tbl3_q,neon_tbl4,neon_tbl4_q"))
111
kono
parents:
diff changeset
380 "thunderx2t99_f01")
kono
parents:
diff changeset
381
kono
parents:
diff changeset
382 (define_insn_reservation "thunderx2t99_asimd_elt_to_gr" 6
kono
parents:
diff changeset
383 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
384 (eq_attr "type" "neon_to_gp,neon_to_gp_q"))
kono
parents:
diff changeset
385 "thunderx2t99_f01")
kono
parents:
diff changeset
386
kono
parents:
diff changeset
387 ;; ASIMD load instructions.
kono
parents:
diff changeset
388
kono
parents:
diff changeset
389 ; NOTE: These reservations attempt to model latency and throughput correctly,
kono
parents:
diff changeset
390 ; but the cycle timing of unit allocation is not necessarily accurate (because
kono
parents:
diff changeset
391 ; insns are split into uops, and those may be issued out-of-order).
kono
parents:
diff changeset
392
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
393 (define_insn_reservation "thunderx2t99_asimd_load1_ldp" 5
111
kono
parents:
diff changeset
394 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
395 (eq_attr "type" "neon_ldp,neon_ldp_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
396 "thunderx2t99_i012,thunderx2t99_ls01")
111
kono
parents:
diff changeset
397
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
398 (define_insn_reservation "thunderx2t99_asimd_load1" 4
111
kono
parents:
diff changeset
399 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
400 (eq_attr "type" "neon_load1_1reg,neon_load1_1reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
401 neon_load1_2reg,neon_load1_2reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
402 neon_load1_3reg,neon_load1_3reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
403 neon_load1_4reg,neon_load1_4reg_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
404 "thunderx2t99_ls01")
111
kono
parents:
diff changeset
405
kono
parents:
diff changeset
406 (define_insn_reservation "thunderx2t99_asimd_load1_onelane" 5
kono
parents:
diff changeset
407 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
408 (eq_attr "type" "neon_load1_one_lane,neon_load1_one_lane_q"))
kono
parents:
diff changeset
409 "thunderx2t99_l01delay,thunderx2t99_f01")
kono
parents:
diff changeset
410
kono
parents:
diff changeset
411 (define_insn_reservation "thunderx2t99_asimd_load1_all" 5
kono
parents:
diff changeset
412 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
413 (eq_attr "type" "neon_load1_all_lanes,neon_load1_all_lanes_q"))
kono
parents:
diff changeset
414 "thunderx2t99_l01delay,thunderx2t99_f01")
kono
parents:
diff changeset
415
kono
parents:
diff changeset
416 (define_insn_reservation "thunderx2t99_asimd_load2" 5
kono
parents:
diff changeset
417 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
418 (eq_attr "type" "neon_load2_2reg,neon_load2_2reg_q,\
kono
parents:
diff changeset
419 neon_load2_one_lane,neon_load2_one_lane_q,\
kono
parents:
diff changeset
420 neon_load2_all_lanes,neon_load2_all_lanes_q"))
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
421 "thunderx2t99_l01delay,thunderx2t99_f01")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
422
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
423 (define_insn_reservation "thunderx2t99_asimd_load3" 7
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
424 (and (eq_attr "tune" "thunderx2t99")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
425 (eq_attr "type" "neon_load3_3reg,neon_load3_3reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
426 neon_load3_one_lane,neon_load3_one_lane_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
427 neon_load3_all_lanes,neon_load3_all_lanes_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
428 "thunderx2t99_l01delay,thunderx2t99_f01")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
429
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
430 (define_insn_reservation "thunderx2t99_asimd_load4" 8
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
431 (and (eq_attr "tune" "thunderx2t99")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
432 (eq_attr "type" "neon_load4_4reg,neon_load4_4reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
433 neon_load4_one_lane,neon_load4_one_lane_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
434 neon_load4_all_lanes,neon_load4_all_lanes_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
435 "thunderx2t99_l01delay,thunderx2t99_f01")
111
kono
parents:
diff changeset
436
kono
parents:
diff changeset
437 ;; ASIMD store instructions.
kono
parents:
diff changeset
438
kono
parents:
diff changeset
439 ; Same note applies as for ASIMD load instructions.
kono
parents:
diff changeset
440
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
441 (define_insn_reservation "thunderx2t99_asimd_store_stp" 1
111
kono
parents:
diff changeset
442 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
443 (eq_attr "type" "neon_stp,neon_stp_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
444 "thunderx2t99_ls01,thunderx2t99_sd")
111
kono
parents:
diff changeset
445
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
446 (define_insn_reservation "thunderx2t99_asimd_store1" 1
111
kono
parents:
diff changeset
447 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
448 (eq_attr "type" "neon_store1_1reg,neon_store1_1reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
449 neon_store1_2reg,neon_store1_2reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
450 neon_store1_3reg,neon_store1_4reg"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
451 "thunderx2t99_ls01")
111
kono
parents:
diff changeset
452
kono
parents:
diff changeset
453 (define_insn_reservation "thunderx2t99_asimd_store1_onelane" 1
kono
parents:
diff changeset
454 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
455 (eq_attr "type" "neon_store1_one_lane,neon_store1_one_lane_q"))
kono
parents:
diff changeset
456 "thunderx2t99_ls01,thunderx2t99_f01")
kono
parents:
diff changeset
457
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
458 (define_insn_reservation "thunderx2t99_asimd_store2" 1
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
459 (and (eq_attr "tune" "thunderx2t99")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
460 (eq_attr "type" "neon_store2_2reg,neon_store2_2reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
461 neon_store2_one_lane,neon_store2_one_lane_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
462 "thunderx2t99_ls01,thunderx2t99_f01")
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
463
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
464 (define_insn_reservation "thunderx2t99_asimd_store3" 1
111
kono
parents:
diff changeset
465 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
466 (eq_attr "type" "neon_store3_3reg,neon_store3_3reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
467 neon_store3_one_lane,neon_store3_one_lane_q"))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
468 "thunderx2t99_ls01,thunderx2t99_f01")
111
kono
parents:
diff changeset
469
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
470 (define_insn_reservation "thunderx2t99_asimd_store4" 1
111
kono
parents:
diff changeset
471 (and (eq_attr "tune" "thunderx2t99")
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
472 (eq_attr "type" "neon_store4_4reg,neon_store4_4reg_q,\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
473 neon_store4_one_lane,neon_store4_one_lane_q"))
111
kono
parents:
diff changeset
474 "thunderx2t99_ls01,thunderx2t99_f01")
kono
parents:
diff changeset
475
kono
parents:
diff changeset
476 ;; Crypto extensions.
kono
parents:
diff changeset
477
kono
parents:
diff changeset
478 (define_insn_reservation "thunderx2t99_aes" 5
kono
parents:
diff changeset
479 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
480 (eq_attr "type" "crypto_aese,crypto_aesmc"))
kono
parents:
diff changeset
481 "thunderx2t99_f1")
kono
parents:
diff changeset
482
kono
parents:
diff changeset
483 (define_insn_reservation "thunderx2t99_sha" 7
kono
parents:
diff changeset
484 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
485 (eq_attr "type" "crypto_sha1_fast,crypto_sha1_xor,crypto_sha1_slow,\
kono
parents:
diff changeset
486 crypto_sha256_fast,crypto_sha256_slow"))
kono
parents:
diff changeset
487 "thunderx2t99_f1")
kono
parents:
diff changeset
488
kono
parents:
diff changeset
489 ;; CRC extension.
kono
parents:
diff changeset
490
kono
parents:
diff changeset
491 (define_insn_reservation "thunderx2t99_crc" 4
kono
parents:
diff changeset
492 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
493 (eq_attr "type" "crc"))
kono
parents:
diff changeset
494 "thunderx2t99_i1")
kono
parents:
diff changeset
495
kono
parents:
diff changeset
496 ;; PMULL extension.
kono
parents:
diff changeset
497
kono
parents:
diff changeset
498 (define_insn_reservation "thunderx2t99_pmull" 5
kono
parents:
diff changeset
499 (and (eq_attr "tune" "thunderx2t99")
kono
parents:
diff changeset
500 (eq_attr "type" "crypto_pmull"))
kono
parents:
diff changeset
501 "thunderx2t99_f1")