public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-8007] C-SKY: Describe ck802 bypass accurately.
@ 2021-04-06 12:48 qu
0 siblings, 0 replies; only message in thread
From: qu @ 2021-04-06 12:48 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:498d2ba5849cd0888ad473a2ff953ede106262c5
commit r11-8007-g498d2ba5849cd0888ad473a2ff953ede106262c5
Author: Xianmiao Qu <xianmiao_qu@c-sky.com>
Date: Tue Apr 6 20:19:15 2021 +0800
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 *.
Diff:
---
gcc/config/csky/csky_pipeline_ck802.md | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gcc/config/csky/csky_pipeline_ck802.md b/gcc/config/csky/csky_pipeline_ck802.md
index bf1c2a7031c..2406f59e776 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")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-06 12:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 12:48 [gcc r11-8007] C-SKY: Describe ck802 bypass accurately qu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).