aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/csky
diff options
context:
space:
mode:
authorXianmiao Qu <xianmiao_qu@c-sky.com>2021-04-06 20:19:15 +0800
committerXianmiao Qu <xianmiao_qu@c-sky.com>2021-04-06 20:48:32 +0800
commit498d2ba5849cd0888ad473a2ff953ede106262c5 (patch)
tree0d2cb181f3018122fa28c9c9121eb621b00f5837 /gcc/config/csky
parenta32452a5442cd05040af53787af0d8b537ac77a6 (diff)
downloadgcc-498d2ba5849cd0888ad473a2ff953ede106262c5.zip
gcc-498d2ba5849cd0888ad473a2ff953ede106262c5.tar.gz
gcc-498d2ba5849cd0888ad473a2ff953ede106262c5.tar.bz2
C-SKY: Describe ck802 bypass accurately.
Fix the following warning: insn-automata.c: In function ‘int maximal_insn_latency(rtx_insn*)’: insn-automata.c:679:37: warning: array subscript -1 is below array bounds of ‘const unsigned char [19]’ [-Warray-bounds] 679 | return default_latencies[insn_code]; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ insn-automata.c:397:30: note: while referencing ‘default_latencies’ 397 | static const unsigned char default_latencies[] = | gcc/ * config/csky/csky_pipeline_ck802.md : Use insn reservation name instead of *.
Diffstat (limited to 'gcc/config/csky')
-rw-r--r--gcc/config/csky/csky_pipeline_ck802.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/csky/csky_pipeline_ck802.md b/gcc/config/csky/csky_pipeline_ck802.md
index bf1c2a7..2406f59 100644
--- a/gcc/config/csky/csky_pipeline_ck802.md
+++ b/gcc/config/csky/csky_pipeline_ck802.md
@@ -70,8 +70,12 @@
(define_bypass 3 "ck802_load,ck802_store" "ck802_pool")
(define_bypass 3 "ck802_pool" "ck802_load,ck802_store")
-(define_bypass 1 "*" "ck802_alu")
+(define_bypass 1 "ck802_alu,ck802_branch,ck802_cmp,ck802_cbranch,ck802_call,\
+ ck802_load,ck802_pool,ck802_store"
+ "ck802_alu")
-(define_bypass 1 "*" "ck802_branch")
+(define_bypass 1 "ck802_alu,ck802_branch,ck802_cmp,ck802_cbranch,ck802_call,\
+ ck802_load,ck802_pool,ck802_store"
+ "ck802_branch")
(define_bypass 2 "ck802_cmp" "ck802_cbranch")