comparison gcc/config/arm/cortex-a9.md @ 0:a06113de4d67

first commit
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2009 14:47:48 +0900
parents
children 77e2b8dfacca
comparison
equal deleted inserted replaced
-1:000000000000 0:a06113de4d67
1 ;; ARM Cortex-A9 VFP pipeline description
2 ;; Copyright (C) 2008 Free Software Foundation, Inc.
3 ;; Written by CodeSourcery.
4 ;;
5 ;; This file is part of GCC.
6 ;;
7 ;; GCC is free software; you can redistribute it and/or modify it
8 ;; under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 3, or (at your option)
10 ;; any later version.
11 ;;
12 ;; GCC is distributed in the hope that it will be useful, but
13 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 ;; General Public License for more details.
16 ;;
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GCC; see the file COPYING3. If not see
19 ;; <http://www.gnu.org/licenses/>.
20
21 (define_automaton "cortex_a9")
22
23 ;; FIXME: We model a single pipeline for all instructions.
24 ;; Is dual-issue possible, and do we have other pipelines?
25 (define_cpu_unit "cortex_a9_vfp" "cortex_a9")
26
27 (define_insn_reservation "cortex_a9_ffarith" 1
28 (and (eq_attr "tune" "cortexa9")
29 (eq_attr "type" "fcpys,ffariths,ffarithd,fcmps,fcmpd,fconsts,fconstd"))
30 "cortex_a9_vfp")
31
32 (define_insn_reservation "cortex_a9_fadd" 4
33 (and (eq_attr "tune" "cortexa9")
34 (eq_attr "type" "fadds,faddd,f_cvt"))
35 "cortex_a9_vfp")
36
37 (define_insn_reservation "cortex_a9_fmuls" 5
38 (and (eq_attr "tune" "cortexa9")
39 (eq_attr "type" "fmuls"))
40 "cortex_a9_vfp")
41
42 (define_insn_reservation "cortex_a9_fmuld" 6
43 (and (eq_attr "tune" "cortexa9")
44 (eq_attr "type" "fmuld"))
45 "cortex_a9_vfp*2")
46
47 (define_insn_reservation "cortex_a9_fmacs" 8
48 (and (eq_attr "tune" "cortexa9")
49 (eq_attr "type" "fmacs"))
50 "cortex_a9_vfp")
51
52 (define_insn_reservation "cortex_a9_fmacd" 8
53 (and (eq_attr "tune" "cortexa9")
54 (eq_attr "type" "fmacd"))
55 "cortex_a9_vfp*2")
56
57 (define_insn_reservation "cortex_a9_fdivs" 15
58 (and (eq_attr "tune" "cortexa9")
59 (eq_attr "type" "fdivs"))
60 "cortex_a9_vfp*10")
61
62 (define_insn_reservation "cortex_a9_fdivd" 25
63 (and (eq_attr "tune" "cortexa9")
64 (eq_attr "type" "fdivd"))
65 "cortex_a9_vfp*20")