public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/107984] New: ICE: in verify_target_availability, at sel-sched.cc:1553 with -O2 -fselective-scheduling2 -mabi=ms -mavx512vl
Date: Tue, 06 Dec 2022 07:22:43 +0000	[thread overview]
Message-ID: <bug-107984-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107984

            Bug ID: 107984
           Summary: ICE: in verify_target_availability, at
                    sel-sched.cc:1553 with -O2 -fselective-scheduling2
                    -mabi=ms -mavx512vl
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 54025
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54025&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -fselective-scheduling2 -mabi=ms -mavx512vl
testcase.c 
testcase.c: In function 'foo0':
testcase.c:12:5: warning: division by zero [-Wdiv-by-zero]
   12 |   u %= 0;
      |     ^~
during RTL pass: sched2
testcase.c:18:1: internal compiler error: in verify_target_availability, at
sel-sched.cc:1553
   18 | }
      | ^
0x786e04 verify_target_availability
        /repo/gcc-trunk/gcc/sel-sched.cc:1553
0x786e04 find_best_reg_for_expr
        /repo/gcc-trunk/gcc/sel-sched.cc:1667
0x786e04 fill_vec_av_set
        /repo/gcc-trunk/gcc/sel-sched.cc:3784
0x13625c5 fill_ready_list
        /repo/gcc-trunk/gcc/sel-sched.cc:4014
0x13625c5 find_best_expr
        /repo/gcc-trunk/gcc/sel-sched.cc:4374
0x13625c5 fill_insns
        /repo/gcc-trunk/gcc/sel-sched.cc:5535
0x13625c5 schedule_on_fences
        /repo/gcc-trunk/gcc/sel-sched.cc:7353
0x13625c5 sel_sched_region_2
        /repo/gcc-trunk/gcc/sel-sched.cc:7491
0x13649c6 sel_sched_region_1
        /repo/gcc-trunk/gcc/sel-sched.cc:7533
0x136614c sel_sched_region(int)
        /repo/gcc-trunk/gcc/sel-sched.cc:7634
0x136614c sel_sched_region(int)
        /repo/gcc-trunk/gcc/sel-sched.cc:7619
0x13662c9 run_selective_scheduling()
        /repo/gcc-trunk/gcc/sel-sched.cc:7720
0x1344b55 rest_of_handle_sched2
        /repo/gcc-trunk/gcc/sched-rgn.cc:3743
0x1344b55 execute
        /repo/gcc-trunk/gcc/sched-rgn.cc:3890
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.


$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r13-4497-20221206065114-g769370f3e2e-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r13-4497-20221206065114-g769370f3e2e-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.0.0 20221206 (experimental) (GCC)

             reply	other threads:[~2022-12-06  7:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06  7:22 zsojka at seznam dot cz [this message]
2022-12-09  9:45 ` [Bug target/107984] ICE: in verify_target_availability, at sel-sched.cc:1553 with -O2 -fselective-scheduling2 -mabi=ms -mavx512vl since r9-5221-gd8fcab689435a29d marxin 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-107984-4@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: link
Be 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).