Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sparc/leon.md @ 68:561a7518be6b
update gcc-4.6
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 21 Aug 2011 07:07:55 +0900 |
parents | |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
67:f6334be47118 | 68:561a7518be6b |
---|---|
1 ;; Scheduling description for LEON. | |
2 ;; Copyright (C) 2010 Free Software Foundation, Inc. | |
3 ;; | |
4 ;; This file is part of GCC. | |
5 ;; | |
6 ;; GCC is free software; you can redistribute it and/or modify | |
7 ;; it under the terms of the GNU General Public License as published by | |
8 ;; the Free Software Foundation; either version 3, or (at your option) | |
9 ;; any later version. | |
10 ;; | |
11 ;; GCC is distributed in the hope that it will be useful, | |
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 ;; GNU General Public License for more details. | |
15 ;; | |
16 ;; You should have received a copy of the GNU General Public License | |
17 ;; along with GCC; see the file COPYING3. If not see | |
18 ;; <http://www.gnu.org/licenses/>. | |
19 | |
20 | |
21 (define_automaton "leon") | |
22 | |
23 (define_cpu_unit "leon_memory, leon_fpalu" "leon") | |
24 (define_cpu_unit "leon_fpmds" "leon") | |
25 (define_cpu_unit "write_buf" "leon") | |
26 | |
27 (define_insn_reservation "leon_load" 1 | |
28 (and (eq_attr "cpu" "leon") | |
29 (eq_attr "type" "load,sload,fpload")) | |
30 "leon_memory") | |
31 | |
32 (define_insn_reservation "leon_store" 1 | |
33 (and (eq_attr "cpu" "leon") | |
34 (eq_attr "type" "store,fpstore")) | |
35 "leon_memory+write_buf") | |
36 | |
37 (define_insn_reservation "leon_fp_alu" 1 | |
38 (and (eq_attr "cpu" "leon") | |
39 (eq_attr "type" "fp,fpmove")) | |
40 "leon_fpalu, nothing") | |
41 | |
42 (define_insn_reservation "leon_fp_mult" 1 | |
43 (and (eq_attr "cpu" "leon") | |
44 (eq_attr "type" "fpmul")) | |
45 "leon_fpmds, nothing") | |
46 | |
47 (define_insn_reservation "leon_fp_div" 16 | |
48 (and (eq_attr "cpu" "leon") | |
49 (eq_attr "type" "fpdivs,fpdivd")) | |
50 "leon_fpmds, nothing*15") | |
51 | |
52 (define_insn_reservation "leon_fp_sqrt" 23 | |
53 (and (eq_attr "cpu" "leon") | |
54 (eq_attr "type" "fpsqrts,fpsqrtd")) | |
55 "leon_fpmds, nothing*21") | |
56 |