annotate gcc/config/arc/arc600.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 ;; DFA scheduling description of the Synopsys DesignWare ARC600 cpu
kono
parents:
diff changeset
2 ;; for GNU C compiler
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 ;; Copyright (C) 2007-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 ;; Contributor: Joern Rennecke <joern.rennecke@embecosm.com>
kono
parents:
diff changeset
5 ;; on behalf of Synopsys Inc.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 ;; This file is part of GCC.
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 ;; GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
11 ;; the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
12 ;; any later version.
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 ;; GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
17 ;; GNU General Public License for more details.
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
20 ;; along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
21 ;; <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 (define_automaton "ARC600")
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 (define_cpu_unit "issue_600" "ARC600")
kono
parents:
diff changeset
26 (define_cpu_unit "mul64_600" "ARC600")
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 ; latency from flag-setting insns to branches is 3.
kono
parents:
diff changeset
29 (define_insn_reservation "compare_600" 3
kono
parents:
diff changeset
30 (and (eq_attr "tune" "arc600")
kono
parents:
diff changeset
31 (eq_attr "type" "compare"))
kono
parents:
diff changeset
32 "issue_600")
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 (define_insn_reservation "load_DI_600" 4
kono
parents:
diff changeset
35 (and (eq_attr "tune" "arc600")
kono
parents:
diff changeset
36 (eq_attr "type" "load")
kono
parents:
diff changeset
37 (match_operand:DI 0 "" ""))
kono
parents:
diff changeset
38 "issue_600")
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 (define_insn_reservation "load_600" 3
kono
parents:
diff changeset
41 (and (eq_attr "tune" "arc600")
kono
parents:
diff changeset
42 (eq_attr "type" "load")
kono
parents:
diff changeset
43 (not (match_operand:DI 0 "" "")))
kono
parents:
diff changeset
44 "issue_600")
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 (define_insn_reservation "mul_600_fast" 3
kono
parents:
diff changeset
47 (and (eq_attr "tune" "arc600")
kono
parents:
diff changeset
48 (match_test "arc_multcost < COSTS_N_INSNS (7)")
kono
parents:
diff changeset
49 (eq_attr "type" "multi,umulti"))
kono
parents:
diff changeset
50 "mul64_600*3")
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 (define_insn_reservation "mul_600_slow" 8
kono
parents:
diff changeset
53 (and (eq_attr "tune" "arc600")
kono
parents:
diff changeset
54 (match_test "arc_multcost >= COSTS_N_INSNS (7)")
kono
parents:
diff changeset
55 (eq_attr "type" "multi,umulti"))
kono
parents:
diff changeset
56 "mul64_600*8")
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 (define_insn_reservation "mul_mac_600" 3
kono
parents:
diff changeset
59 (and (eq_attr "tune" "arc600")
kono
parents:
diff changeset
60 (eq_attr "type" "mulmac_600"))
kono
parents:
diff changeset
61 "nothing*3")
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 (define_bypass 1 "mul_mac_600" "mul_mac_600")