| 1 |
;; Instruction scheduling information for C-SKY CK810 processors. |
| 2 |
;; Copyright (C) 2018-2025 Free Software Foundation, Inc. |
| 3 |
;; Contributed by C-SKY Microsystems and Mentor Graphics. |
| 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 by |
| 9 |
;; the Free Software Foundation; either version 3, or (at your option) |
| 10 |
;; any later version. |
| 11 |
;; |
| 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. |
| 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 |
;;------------------------------------------------------------- |
| 23 |
;; Pipeline descriptions for ck810 |
| 24 |
;;------------------------------------------------------------- |
| 25 |
|
| 26 |
(define_attr "cycle" "1,2,not_used_yet" |
| 27 |
(const_string "1")) |
| 28 |
(define_automaton "cskyv2_ck810") |
| 29 |
(define_cpu_unit "pipeline_alu0" "cskyv2_ck810") |
| 30 |
(define_insn_reservation "alu_one_cycle" 1 |
| 31 |
(and (eq_attr "cycle" "1") |
| 32 |
(not (ior (match_test "CSKY_TARGET_ARCH (CK803)") |
| 33 |
(match_test "CSKY_TARGET_ARCH (CK802)")))) |
| 34 |
"pipeline_alu0") |