1 ;; ARM Cortex-A9 VFP pipeline description
2 ;; Copyright (C) 2008 Free Software Foundation, Inc.
3 ;; Written by CodeSourcery.
5 ;; This file is part of GCC.
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)
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.
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/>.
21 (define_automaton "cortex_a9")
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")
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"))
32 (define_insn_reservation "cortex_a9_fadd" 4
33 (and (eq_attr "tune" "cortexa9")
34 (eq_attr "type" "fadds,faddd,f_cvt"))
37 (define_insn_reservation "cortex_a9_fmuls" 5
38 (and (eq_attr "tune" "cortexa9")
39 (eq_attr "type" "fmuls"))
42 (define_insn_reservation "cortex_a9_fmuld" 6
43 (and (eq_attr "tune" "cortexa9")
44 (eq_attr "type" "fmuld"))
47 (define_insn_reservation "cortex_a9_fmacs" 8
48 (and (eq_attr "tune" "cortexa9")
49 (eq_attr "type" "fmacs"))
52 (define_insn_reservation "cortex_a9_fmacd" 8
53 (and (eq_attr "tune" "cortexa9")
54 (eq_attr "type" "fmacd"))
57 (define_insn_reservation "cortex_a9_fdivs" 15
58 (and (eq_attr "tune" "cortexa9")
59 (eq_attr "type" "fdivs"))
62 (define_insn_reservation "cortex_a9_fdivd" 25
63 (and (eq_attr "tune" "cortexa9")
64 (eq_attr "type" "fdivd"))