| 1 |
;; Pipeline descriptions of Andes NDS32 cpu for GNU compiler |
| 2 |
;; Copyright (C) 2012-2025 Free Software Foundation, Inc. |
| 3 |
;; Contributed by Andes Technology Corporation. |
| 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 |
| 9 |
;; by the Free Software Foundation; either version 3, or (at your |
| 10 |
;; option) any later version. |
| 11 |
;; |
| 12 |
;; GCC is distributed in the hope that it will be useful, but WITHOUT |
| 13 |
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 14 |
;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 15 |
;; 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 |
;; ------------------------------------------------------------------------ |
| 22 |
;; Include N7 pipeline settings. |
| 23 |
;; ------------------------------------------------------------------------ |
| 24 |
(include "nds32-n7.md") |
| 25 |
|
| 26 |
|
| 27 |
;; ------------------------------------------------------------------------ |
| 28 |
;; Include N8 pipeline settings. |
| 29 |
;; ------------------------------------------------------------------------ |
| 30 |
(include "nds32-n8.md") |
| 31 |
|
| 32 |
|
| 33 |
;; ------------------------------------------------------------------------ |
| 34 |
;; Include E8 pipeline settings. |
| 35 |
;; ------------------------------------------------------------------------ |
| 36 |
(include "nds32-e8.md") |
| 37 |
|
| 38 |
|
| 39 |
;; ------------------------------------------------------------------------ |
| 40 |
;; Include N9/N10 pipeline settings. |
| 41 |
;; ------------------------------------------------------------------------ |
| 42 |
(include "nds32-n9-3r2w.md") |
| 43 |
(include "nds32-n9-2r1w.md") |
| 44 |
|
| 45 |
|
| 46 |
;; ------------------------------------------------------------------------ |
| 47 |
;; Include N10 pipeline settings. |
| 48 |
;; ------------------------------------------------------------------------ |
| 49 |
(include "nds32-n10.md") |
| 50 |
|
| 51 |
|
| 52 |
;; ------------------------------------------------------------------------ |
| 53 |
;; Include Graywolf pipeline settings. |
| 54 |
;; ------------------------------------------------------------------------ |
| 55 |
(include "nds32-graywolf.md") |
| 56 |
|
| 57 |
|
| 58 |
;; ------------------------------------------------------------------------ |
| 59 |
;; Include N12/N13 pipeline settings. |
| 60 |
;; ------------------------------------------------------------------------ |
| 61 |
(include "nds32-n13.md") |
| 62 |
|
| 63 |
|
| 64 |
;; ------------------------------------------------------------------------ |
| 65 |
;; Define simple pipeline settings. |
| 66 |
;; ------------------------------------------------------------------------ |
| 67 |
|
| 68 |
(define_automaton "nds32_simple_machine") |
| 69 |
|
| 70 |
(define_cpu_unit "simple_unit" "nds32_simple_machine") |
| 71 |
|
| 72 |
(define_insn_reservation "simple_insn" 1 |
| 73 |
(eq_attr "pipeline_model" "simple") |
| 74 |
"simple_unit") |
| 75 |
|
| 76 |
;; ------------------------------------------------------------------------ |