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

            Bug ID: 117357
           Summary: ICE: in extract_insn, at recog.cc:2882 (unrecognizable
                    insn: UNSPEC_RSQRT) with -mfpmath=387 and
                    __builtin_ia32_rsqrtf()
           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: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -mfpmath=387 testcase.c 
testcase.c: In function 'foo':
testcase.c:5:1: error: unrecognizable insn:
    5 | }
      | ^
(insn 7 6 8 2 (set (reg:SF 100)
        (unspec:SF [
                (reg:SF 105)
            ] UNSPEC_RSQRT)) "testcase.c":4:12 -1
     (nil))
during RTL pass: vregs
testcase.c:5:1: internal compiler error: in extract_insn, at recog.cc:2882
0x2dfc7fe internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic-global-context.cc:518
0xe81f0b fancy_abort(char const*, int, char const*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1580
0x833fb5 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:109
0x834032 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.cc:117
0x822b4b extract_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.cc:2882
0x1202ec0 instantiate_virtual_regs_in_insn
        /repo/gcc-trunk/gcc/function.cc:1612
0x1202ec0 instantiate_virtual_regs
        /repo/gcc-trunk/gcc/function.cc:1995
0x1202ec0 execute
        /repo/gcc-trunk/gcc/function.cc:2042
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-r15-4758-20241029151023-g3d06e9c3e07-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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
--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-r15-4758-20241029151023-g3d06e9c3e07-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20241029 (experimental) (GCC)

Reply via email to