public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103396] [GCN][BUILD] ICE RTL check: access of elt 4 of vector with last elt 3 in move_callee_saved_registers, at config/gcn/gcn.c:2821 Date: Tue, 23 Nov 2021 21:20:49 +0000 [thread overview] Message-ID: <bug-103396-4-gXuNCxNmJ6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103396-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103396 --- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- Created attachment 51864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51864&action=edit Reduced testcase – compile with -O2 -march=gfx900 / gfx906 / gfx908 Note: No ICE with -match=fiji ICE at: Breakpoint 1, move_callee_saved_registers (sp=0x7ffff73090f0, offsets=0x7ffff7402e00, prologue=true) at gcc-mainline/gcc/config/gcn/gcn.c:2821 2821 RTVEC_ELT (seq, count) = set; with (gdb) p debug_rtx(sp) (reg/f:DI 16 s16) (gdb) p debug_rtx(set) (set/f (mem:DI (plus:DI (reg/f:DI 16 s16) (const_int 8 [0x8])) [0 S8 A64]) (reg:DI 420 ?dwlr)) $18 = void (gdb) p count $8 = 4 (gdb) p *seq $10 = {num_elem = 4, elem = {0x7ffff742ef30}} (gdb) p *seq.elem $11 = (rtx) 0x7ffff742ef30 (gdb) p seq.elem[0] $12 = (rtx) 0x7ffff742ef30 (gdb) p debug_rtx(seq.elem[0]) (set/f (mem:SI (plus:DI (reg/f:DI 16 s16) (const_int 0 [0])) [0 S4 A32]) (reg:SI 14 s14)) $13 = void (gdb) p debug_rtx(seq.elem[1]) (set/f (mem:SI (plus:DI (reg/f:DI 16 s16) (const_int 4 [0x4])) [0 S4 A32]) (reg:SI 15 s15)) $14 = void (gdb) p debug_rtx(seq.elem[2]) (set/f (mem:SI (plus:DI (reg/f:DI 16 s16) (const_int 8 [0x8])) [0 S4 A32]) (reg:SI 18 s18)) $15 = void (gdb) p debug_rtx(seq.elem[3]) (set/f (mem:SI (plus:DI (reg/f:DI 16 s16) (const_int 12 [0xc])) [0 S4 A32]) (reg:SI 19 s19)) $16 = void
next prev parent reply other threads:[~2021-11-23 21:20 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-23 20:48 [Bug target/103396] New: " burnus at gcc dot gnu.org 2021-11-23 21:13 ` [Bug target/103396] " pinskia at gcc dot gnu.org 2021-11-23 21:16 ` pinskia at gcc dot gnu.org 2021-11-23 21:20 ` burnus at gcc dot gnu.org [this message] 2021-11-23 21:25 ` [Bug target/103396] [12 Regression][GCN][BUILD] " burnus at gcc dot gnu.org 2021-11-24 12:30 ` ams at gcc dot gnu.org 2021-11-25 16:05 ` cvs-commit at gcc dot gnu.org 2021-11-25 16:14 ` ams at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-103396-4-gXuNCxNmJ6@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).