public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/107984] New: ICE: in verify_target_availability, at sel-sched.cc:1553 with -O2 -fselective-scheduling2 -mabi=ms -mavx512vl
@ 2022-12-06  7:22 zsojka at seznam dot cz
  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
  0 siblings, 1 reply; 2+ messages in thread
From: zsojka at seznam dot cz @ 2022-12-06  7:22 UTC (permalink / raw)
  To: gcc-bugs

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/107984] ICE: in verify_target_availability, at sel-sched.cc:1553 with -O2 -fselective-scheduling2 -mabi=ms -mavx512vl since r9-5221-gd8fcab689435a29d
  2022-12-06  7:22 [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
@ 2022-12-09  9:45 ` marxin at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-09  9:45 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-12-09
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|ICE: in                     |ICE: in
                   |verify_target_availability, |verify_target_availability,
                   |at sel-sched.cc:1553 with   |at sel-sched.cc:1553 with
                   |-O2 -fselective-scheduling2 |-O2 -fselective-scheduling2
                   |-mabi=ms -mavx512vl         |-mabi=ms -mavx512vl since
                   |                            |r9-5221-gd8fcab689435a29d

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-5221-gd8fcab689435a29d, it was rejected before the revision.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-09  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06  7:22 [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
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

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).