[Bug target/107984] New: ICE: in verify_target_availability, at sel-sched.cc:1553 with -O2 -fselective-scheduling2 -mabi=ms -mavx512vl

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Tue Dec 6 07:22:43 GMT 2022


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)


More information about the Gcc-bugs mailing list