public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "xry111 at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/114861] LoongArch: ICE building the kernel with -Os
Date: Fri, 26 Apr 2024 09:29:27 +0000	[thread overview]
Message-ID: <bug-114861-4-XEE4Kz0TGK@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114861-4@http.gcc.gnu.org/bugzilla/>

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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-reduction             |ice-on-valid-code

--- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Reduced test case:

long evcn, attr_collapse_range_vbo, attr_collapse_range_bytes;
unsigned short flags;
int attr_collapse_range_ni_0_0;
int *attr_collapse_range_mi;
unsigned attr_collapse_range_svcn, attr_collapse_range_vcn1;
void ni_insert_nonresident(unsigned, unsigned short, int **);
int mi_pack_runs(int);
int attr_collapse_range(void) {
  _Bool __trans_tmp_1;
  int run = attr_collapse_range_ni_0_0;
  unsigned evcn1, vcn, end;
  short a_flags = flags;
  __trans_tmp_1 = flags & (32768 | 1);
  if (__trans_tmp_1)
    return 2;
  vcn = attr_collapse_range_vbo;
  end = attr_collapse_range_bytes;
  evcn1 = evcn;
  for (;;)
    if (attr_collapse_range_svcn >= end) {
      unsigned eat, next_svcn = mi_pack_runs(42);
      attr_collapse_range_vcn1 = (vcn ? vcn: attr_collapse_range_svcn);
      eat = (0 < end) - attr_collapse_range_vcn1;
      mi_pack_runs(run - eat);
      if (next_svcn + eat)
        ni_insert_nonresident(evcn1 - eat - next_svcn, a_flags,
                              &attr_collapse_range_mi);
    } else
      return 42;
}

  parent reply	other threads:[~2024-04-26  9:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-26  7:00 [Bug target/114861] New: LoongArch: Fail to build " xry111 at gcc dot gnu.org
2024-04-26  7:05 ` [Bug target/114861] LoongArch: ICE building " xry111 at gcc dot gnu.org
2024-04-26  7:37 ` xry111 at gcc dot gnu.org
2024-04-26  7:41 ` jakub at gcc dot gnu.org
2024-04-26  7:51 ` xry111 at gcc dot gnu.org
2024-04-26  9:29 ` xry111 at gcc dot gnu.org [this message]
2024-04-26 14:27 ` [Bug target/114861] [14/15 Regression] " rguenth at gcc dot gnu.org
2024-04-26 15:57 ` xry111 at gcc dot gnu.org
2024-04-27  4:00 ` cvs-commit at gcc dot gnu.org
2024-04-27  4:02 ` cvs-commit at gcc dot gnu.org
2024-04-27  4:03 ` xry111 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-114861-4-XEE4Kz0TGK@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).