Home | History | Annotate | Line # | Download | only in rs6000
a2.md revision 1.1.1.4
      1      1.1  mrg ;; Scheduling description for PowerPC A2 processors.
      2  1.1.1.4  mrg ;; Copyright (C) 2009-2016 Free Software Foundation, Inc.
      3      1.1  mrg ;; Contributed by Ben Elliston (bje (a] au.ibm.com)
      4      1.1  mrg 
      5      1.1  mrg ;; This file is part of GCC.
      6      1.1  mrg 
      7      1.1  mrg ;; GCC is free software; you can redistribute it and/or modify it
      8      1.1  mrg ;; under the terms of the GNU General Public License as published
      9      1.1  mrg ;; by the Free Software Foundation; either version 3, or (at your
     10      1.1  mrg ;; option) any later version.
     11      1.1  mrg 
     12      1.1  mrg ;; GCC is distributed in the hope that it will be useful, but WITHOUT
     13      1.1  mrg ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     14      1.1  mrg ;; or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
     15      1.1  mrg ;; License for more details.
     16      1.1  mrg 
     17      1.1  mrg ;; You should have received a copy of the GNU General Public License
     18      1.1  mrg ;; along with GCC; see the file COPYING3.  If not see
     19      1.1  mrg ;; <http://www.gnu.org/licenses/>.
     20      1.1  mrg 
     21      1.1  mrg (define_automaton "ppca2")
     22      1.1  mrg 
     23      1.1  mrg ;; CPU units
     24      1.1  mrg 
     25      1.1  mrg ;; The multiplier pipeline.
     26      1.1  mrg (define_cpu_unit "mult" "ppca2")
     27      1.1  mrg 
     28  1.1.1.2  mrg ;; The auxiliary processor unit (FP/vector unit).
     29      1.1  mrg (define_cpu_unit "axu" "ppca2")
     30      1.1  mrg 
     31      1.1  mrg ;; D.4.6
     32      1.1  mrg ;; Some peculiarities for certain SPRs
     33      1.1  mrg 
     34      1.1  mrg (define_insn_reservation "ppca2-mfcr" 1
     35      1.1  mrg   (and (eq_attr "type" "mfcr")
     36      1.1  mrg        (eq_attr "cpu" "ppca2"))
     37      1.1  mrg    "nothing")
     38      1.1  mrg 
     39      1.1  mrg (define_insn_reservation "ppca2-mfjmpr" 5
     40      1.1  mrg   (and (eq_attr "type" "mfjmpr")
     41      1.1  mrg        (eq_attr "cpu" "ppca2"))
     42      1.1  mrg   "nothing")
     43      1.1  mrg 
     44      1.1  mrg (define_insn_reservation "ppca2-mtjmpr" 5
     45      1.1  mrg   (and (eq_attr "type" "mtjmpr")
     46      1.1  mrg        (eq_attr "cpu" "ppca2"))
     47      1.1  mrg   "nothing")
     48      1.1  mrg 
     49      1.1  mrg ;; D.4.8
     50      1.1  mrg (define_insn_reservation "ppca2-imul" 1
     51  1.1.1.3  mrg   (and (eq_attr "type" "mul")
     52  1.1.1.3  mrg        (eq_attr "size" "8,16,32")
     53      1.1  mrg        (eq_attr "cpu" "ppca2"))
     54      1.1  mrg   "nothing")
     55      1.1  mrg 
     56      1.1  mrg ;; FIXME: latency and multiplier reservation for 64-bit multiply?
     57      1.1  mrg (define_insn_reservation "ppca2-lmul" 6
     58  1.1.1.3  mrg   (and (eq_attr "type" "mul")
     59  1.1.1.3  mrg        (eq_attr "size" "64")
     60      1.1  mrg        (eq_attr "cpu" "ppca2"))
     61      1.1  mrg   "mult*3")
     62      1.1  mrg 
     63      1.1  mrg ;; D.4.9
     64      1.1  mrg (define_insn_reservation "ppca2-idiv" 32
     65  1.1.1.3  mrg   (and (eq_attr "type" "div")
     66  1.1.1.3  mrg        (eq_attr "size" "32")
     67      1.1  mrg        (eq_attr "cpu" "ppca2"))
     68      1.1  mrg   "mult*32")
     69      1.1  mrg 
     70      1.1  mrg (define_insn_reservation "ppca2-ldiv" 65
     71  1.1.1.3  mrg   (and (eq_attr "type" "div")
     72  1.1.1.3  mrg        (eq_attr "size" "64")
     73      1.1  mrg        (eq_attr "cpu" "ppca2"))
     74      1.1  mrg   "mult*65")
     75      1.1  mrg 
     76      1.1  mrg ;; D.4.13
     77      1.1  mrg (define_insn_reservation "ppca2-load" 5
     78  1.1.1.3  mrg   (and (eq_attr "type" "load")
     79      1.1  mrg        (eq_attr "cpu" "ppca2"))
     80      1.1  mrg   "nothing")
     81      1.1  mrg 
     82      1.1  mrg ;; D.8.1
     83      1.1  mrg (define_insn_reservation "ppca2-fp" 6
     84  1.1.1.4  mrg   (and (eq_attr "type" "fp,fpsimple")
     85      1.1  mrg        (eq_attr "cpu" "ppca2"))
     86      1.1  mrg   "axu")
     87      1.1  mrg 
     88      1.1  mrg ;; D.8.4
     89      1.1  mrg (define_insn_reservation "ppca2-fp-load" 6
     90  1.1.1.3  mrg   (and (eq_attr "type" "fpload")
     91      1.1  mrg        (eq_attr "cpu" "ppca2"))
     92      1.1  mrg   "axu")
     93      1.1  mrg 
     94      1.1  mrg ;; D.8.5
     95      1.1  mrg (define_insn_reservation "ppca2-fp-store" 2
     96  1.1.1.3  mrg   (and (eq_attr "type" "fpstore")
     97      1.1  mrg        (eq_attr "cpu" "ppca2"))
     98      1.1  mrg   "axu")
     99      1.1  mrg 
    100      1.1  mrg ;; D.8.6
    101      1.1  mrg (define_insn_reservation "ppca2-fpcompare" 5
    102      1.1  mrg   (and (eq_attr "type" "fpcompare")
    103      1.1  mrg        (eq_attr "cpu" "ppca2"))
    104      1.1  mrg  "axu")
    105      1.1  mrg 
    106      1.1  mrg ;; D.8.7
    107      1.1  mrg ;;
    108      1.1  mrg ;; Instructions from the same thread succeeding the floating-point
    109      1.1  mrg ;; divide cannot be executed until the floating-point divide has
    110      1.1  mrg ;; completed.  Since there is nothing else we can do, this thread will
    111      1.1  mrg ;; just have to stall.
    112      1.1  mrg 
    113      1.1  mrg (define_insn_reservation "ppca2-ddiv" 72
    114      1.1  mrg   (and (eq_attr "type" "ddiv")
    115      1.1  mrg        (eq_attr "cpu" "ppca2"))
    116      1.1  mrg    "axu")
    117      1.1  mrg 
    118      1.1  mrg (define_insn_reservation "ppca2-sdiv" 59
    119      1.1  mrg   (and (eq_attr "type" "sdiv")
    120      1.1  mrg        (eq_attr "cpu" "ppca2"))
    121      1.1  mrg    "axu")
    122      1.1  mrg 
    123      1.1  mrg ;; D.8.8
    124      1.1  mrg ;; 
    125      1.1  mrg ;; Instructions from the same thread succeeding the floating-point
    126      1.1  mrg ;; divide cannot be executed until the floating-point divide has
    127      1.1  mrg ;; completed.  Since there is nothing else we can do, this thread will
    128      1.1  mrg ;; just have to stall.
    129      1.1  mrg 
    130      1.1  mrg (define_insn_reservation "ppca2-dsqrt" 69
    131      1.1  mrg   (and (eq_attr "type" "dsqrt")
    132      1.1  mrg        (eq_attr "cpu" "ppca2"))
    133      1.1  mrg   "axu")
    134      1.1  mrg 
    135      1.1  mrg (define_insn_reservation "ppca2-ssqrt" 65
    136      1.1  mrg   (and (eq_attr "type" "ssqrt")
    137      1.1  mrg        (eq_attr "cpu" "ppca2"))
    138      1.1  mrg   "axu")
    139