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/94461] New: [10 Regression] ICE: in extract_insn, at recog.c:2294 with __builtin_ia32_pmuludq() and -mno-sse2
Date: Thu, 02 Apr 2020 17:58:35 +0000	[thread overview]
Message-ID: <bug-94461-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 94461
           Summary: [10 Regression] ICE: in extract_insn, at recog.c:2294
                    with __builtin_ia32_pmuludq() and -mno-sse2
           Product: gcc
           Version: 10.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

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -mno-sse2 testcase.c     
testcase.c: In function 'foo':
testcase.c:8:1: error: unrecognizable insn:
    8 | }
      | ^
(insn 7 6 10 2 (set (reg:V1DI 82 [ _2 ])
        (mult:V1DI (zero_extend:V1DI (vec_select:V1SI (reg:V2SI 84)
                    (parallel [
                            (const_int 0 [0])
                        ])))
            (zero_extend:V1DI (vec_select:V1SI (reg:V2SI 84)
                    (parallel [
                            (const_int 0 [0])
                        ]))))) "testcase.c":7:10 -1
     (nil))
during RTL pass: vregs
testcase.c:8:1: internal compiler error: in extract_insn, at recog.c:2294
0x6d36a8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.c:108
0x6d372b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.c:116
0x6c2b11 extract_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.c:2294
0xca6a83 instantiate_virtual_regs_in_insn
        /repo/gcc-trunk/gcc/function.c:1607
0xca6a83 instantiate_virtual_regs
        /repo/gcc-trunk/gcc/function.c:1977
0xca6a83 execute
        /repo/gcc-trunk/gcc/function.c:2026
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Compiler output (gcc-9):
$ x86_64-pc-linux-gnu-gcc -mno-sse2 testcase.c
testcase.c: In function 'foo':
testcase.c:7:10: error: '__builtin_ia32_pmuludq' needs isa option -msse2 -mmmx
    7 |   return __builtin_ia32_pmuludq (a, a);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~


$ 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-r10-7481-20200331151333-gf14b41d2712-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/10.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
--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-r10-7481-20200331151333-gf14b41d2712-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200331 (experimental) (GCC)

             reply	other threads:[~2020-04-02 17:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02 17:58 zsojka at seznam dot cz [this message]
2020-04-02 18:12 ` [Bug target/94461] " zsojka at seznam dot cz
2020-04-02 18:52 ` jakub at gcc dot gnu.org
2020-04-03  7:06 ` rguenth at gcc dot gnu.org
2020-04-03  7:49 ` ubizjak at gmail dot com
2020-04-03 11:01 ` hjl.tools at gmail dot com
2020-04-03 11:04 ` hjl.tools at gmail dot com
2020-04-03 11:05 ` hjl.tools at gmail dot com
2020-04-03 11:26 ` jakub at gcc dot gnu.org
2020-04-03 12:26 ` jakub at gcc dot gnu.org
2020-04-03 12:41 ` hjl.tools at gmail dot com
2020-04-03 12:51 ` jakub at gcc dot gnu.org
2020-04-03 12:57 ` jakub at gcc dot gnu.org
2020-04-03 13:52 ` hjl.tools at gmail dot com
2020-04-03 13:57 ` jakub at gcc dot gnu.org
2020-04-03 14:10 ` jakub at gcc dot gnu.org
2020-04-03 18:34 ` cvs-commit at gcc dot gnu.org
2020-04-03 18:35 ` jakub 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-94461-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).