comparison gcc/config/mips/loongson3a.md @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents 561a7518be6b
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 ;; Pipeline model for Loongson-3A cores. 1 ;; Pipeline model for Loongson-3A cores.
2 2
3 ;; Copyright (C) 2011 Free Software Foundation, Inc. 3 ;; Copyright (C) 2011-2017 Free Software Foundation, Inc.
4 ;; 4 ;;
5 ;; This file is part of GCC. 5 ;; This file is part of GCC.
6 ;; 6 ;;
7 ;; GCC is free software; you can redistribute it and/or modify it 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 8 ;; under the terms of the GNU General Public License as published
51 (eq_attr "type" "branch,jump,call,condmove,trap")) 51 (eq_attr "type" "branch,jump,call,condmove,trap"))
52 "ls3a_alu1") 52 "ls3a_alu1")
53 53
54 (define_insn_reservation "ls3a_mfhilo" 1 54 (define_insn_reservation "ls3a_mfhilo" 1
55 (and (eq_attr "cpu" "loongson_3a") 55 (and (eq_attr "cpu" "loongson_3a")
56 (eq_attr "type" "mfhilo,mthilo")) 56 (eq_attr "type" "mfhi,mflo,mthi,mtlo"))
57 "ls3a_alu2") 57 "ls3a_alu2")
58 58
59 ;; Operation imul3nc is fully pipelined. 59 ;; Operation imul3nc is fully pipelined.
60 (define_insn_reservation "ls3a_imul3nc" 5 60 (define_insn_reservation "ls3a_imul3nc" 5
61 (and (eq_attr "cpu" "loongson_3a") 61 (and (eq_attr "cpu" "loongson_3a")
129 "ls3a_falu1 * 19") 129 "ls3a_falu1 * 19")
130 130
131 ;; Force single-dispatch for unknown or multi. 131 ;; Force single-dispatch for unknown or multi.
132 (define_insn_reservation "ls3a_unknown" 1 132 (define_insn_reservation "ls3a_unknown" 1
133 (and (eq_attr "cpu" "loongson_3a") 133 (and (eq_attr "cpu" "loongson_3a")
134 (eq_attr "type" "unknown,multi")) 134 (eq_attr "type" "unknown,multi,atomic,syncloop"))
135 "ls3a_alu1 + ls3a_alu2 + ls3a_falu1 + ls3a_falu2 + ls3a_mem") 135 "ls3a_alu1 + ls3a_alu2 + ls3a_falu1 + ls3a_falu2 + ls3a_mem")
136 136
137 ;; End of DFA-based pipeline description for loongson_3a 137 ;; End of DFA-based pipeline description for loongson_3a