public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/100736] New: ICE: unrecognizable insn
Date: Mon, 24 May 2021 06:04:03 +0000	[thread overview]
Message-ID: <bug-100736-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 100736
           Summary: ICE: unrecognizable insn
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-*-linux-gnu

gcc-12.0.0-alpha20210523 snapshot (g:c01c4331112aaf45f0de20ed8883dbeab83ed896)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gcc.target/powerpc/bcd-4.c, w/ -mvsx -mpower8-vector
-ffinite-math-only:

typedef __attribute__ ((altivec (vector__))) unsigned char v;

int
foo (v a, v b)
{
  return __builtin_vec_bcdsub_ge (a, b, 0);
}

% powerpc-e300c3-linux-gnu-gcc-12.0.0 -mvsx -mpower8-vector -ffinite-math-only
-c ktvdviry.c
ktvdviry.c: In function 'foo':
ktvdviry.c:7:1: error: unrecognizable insn:
    7 | }
      | ^
(insn 10 9 13 2 (set (reg:SI 119 [ _5 ])
        (ge:SI (reg:CCFP 106 6)
            (const_int 0 [0]))) "ktvdviry.c":6:10 -1
     (nil))
during RTL pass: vregs
ktvdviry.c:7:1: internal compiler error: in extract_insn, at recog.c:2770
0x6912fa _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.0_alpha20210523/work/gcc-12-20210523/gcc/rtl-error.c:108
0x69131a _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.0_alpha20210523/work/gcc-12-20210523/gcc/rtl-error.c:116
0x68f987 extract_insn(rtx_insn*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.0_alpha20210523/work/gcc-12-20210523/gcc/recog.c:2770
0xaf6de1 instantiate_virtual_regs_in_insn
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.0_alpha20210523/work/gcc-12-20210523/gcc/function.c:1609
0xaf6de1 instantiate_virtual_regs
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.0_alpha20210523/work/gcc-12-20210523/gcc/function.c:1983
0xaf6de1 execute
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-12.0.0_alpha20210523/work/gcc-12-20210523/gcc/function.c:2032

             reply	other threads:[~2021-05-24  6:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24  6:04 asolokha at gmx dot com [this message]
2021-06-03  0:11 ` [Bug target/100736] " segher at gcc dot gnu.org
2021-12-08  7:17 ` guihaoc at gcc dot gnu.org
2021-12-08 22:13 ` segher at gcc dot gnu.org
2021-12-09  1:49 ` guihaoc at gcc dot gnu.org
2022-08-24  3:57 ` bergner at gcc dot gnu.org
2022-08-24 20:45 ` segher at gcc dot gnu.org
2024-04-23  5:37 ` guojiufu 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-100736-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).