public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/110470] New: Test gcc.c-torture/execute/pr105613.c ICEs in prepare_cmp_insn on s390x with -march=z14
Date: Wed, 28 Jun 2023 21:24:07 +0000	[thread overview]
Message-ID: <bug-110470-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 110470
           Summary: Test gcc.c-torture/execute/pr105613.c ICEs in
                    prepare_cmp_insn on s390x with -march=z14
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

Take gcc.c-torture/execute/pr105613.c:

$ ./cc1 -quiet pr105613.c -Iinclude -march=z13
$ ./cc1 -quiet pr105613.c -Iinclude -march=z14
during RTL pass: expand
pr105613.c: In function ‘foo’:
pr105613.c:9:10: internal compiler error: in prepare_cmp_insn, at
optabs.cc:4609
    9 |   *r = v != 0;
      |        ~~^~~~
0x6c59a6 prepare_cmp_insn
        /home/mpolacek/src/gcc/gcc/optabs.cc:4609
0xd2055f emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*,
machine_mode, int, tree_node*, rtx_def*, profile_probability)
        /home/mpolacek/src/gcc/gcc/optabs.cc:4824
0x9fbed9 do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int, tree_node*,
machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*, profile_probability)
        /home/mpolacek/src/gcc/gcc/dojump.cc:1238
0x9fd63a do_jump
        /home/mpolacek/src/gcc/gcc/dojump.cc:620
0xaa22d7 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        /home/mpolacek/src/gcc/gcc/expr.cc:10274
0x988a40 expand_gimple_stmt_1
        /home/mpolacek/src/gcc/gcc/cfgexpand.cc:3983
0x988a40 expand_gimple_stmt
        /home/mpolacek/src/gcc/gcc/cfgexpand.cc:4044
0x98d9a6 expand_gimple_basic_block
        /home/mpolacek/src/gcc/gcc/cfgexpand.cc:6096
0x98f447 execute
        /home/mpolacek/src/gcc/gcc/cfgexpand.cc:6831

                 reply	other threads:[~2023-06-28 21:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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