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

            Bug ID: 119617
           Summary: ICE: in standard_sse_constant_opcode, at
                    config/i386/i386.cc:5465 with
                    -fzero-call-used-regs=all -mabi=ms -mavx512f
                    -mno-evex512
           Product: gcc
           Version: 15.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: ---

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -fzero-call-used-regs=all -mabi=ms -mavx512f
-mno-evex512 testcase.c
x86_64-pc-linux-gnu-gcc: warning: '-mevex512' will be deprecated in GCC 16 due
to all machines 512 bit vector size supported
cc1: warning: '-mevex512' will be deprecated in GCC 16 due to all machines 512
bit vector size supported
during RTL pass: final
testcase.c: In function 'foo':
testcase.c:2:22: internal compiler error: in standard_sse_constant_opcode, at
config/i386/i386.cc:5465
    2 | void foo() { f /= f; }
      |                      ^
0x2df96e1 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517
0xef8363 fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1749
0x92ab52 standard_sse_constant_opcode(rtx_insn*, rtx_def**)
        /repo/gcc-trunk/gcc/config/i386/i386.cc:5465
0x1227863 final_scan_insn_1
        /repo/gcc-trunk/gcc/final.cc:2779
0x1227f1b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /repo/gcc-trunk/gcc/final.cc:2892
0x1228155 final_1
        /repo/gcc-trunk/gcc/final.cc:1983
0x1228dda rest_of_handle_final
        /repo/gcc-trunk/gcc/final.cc:4250
0x1228dda execute
        /repo/gcc-trunk/gcc/final.cc:4328
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/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20250401222213-r15-9143-g063fbd5a10d47d-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.0.1/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 --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20250401222213-r15-9143-g063fbd5a10d47d-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.1 20250402 (experimental) (GCC)

Reply via email to