public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/97992] ICE in subst_asm_stack_regs, at reg-stack.c:2264
Date: Tue, 01 Dec 2020 17:50:42 +0000	[thread overview]
Message-ID: <bug-97992-4-MBtYOwPymd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97992-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from G. Steinmetz <gscfq@t-online.de> ---

Presumably related :


$ cat z2.c
long double
f (long double x)
{
  asm ("fsqrt" :: ""(x));
  return 1.0 - x;
}


$ cat z5.c
double
foo (double a)
{
  for (int i=0; i<4; i++)
  {
    asm ("mov %1" : "=&t"(a) : ""(a));
  }
  return a;
}


$ gcc-11-20201129 -c z2.c -O2
during RTL pass: stack
z2.c: In function 'f':
z2.c:6:1: internal compiler error: in change_stack, at reg-stack.c:2646
    6 | }
      | ^
0xac4218 change_stack
        ../../gcc/reg-stack.c:2646
0xac44ec subst_asm_stack_regs
        ../../gcc/reg-stack.c:2254
0xac655d subst_stack_regs
        ../../gcc/reg-stack.c:2425
0xac68d7 convert_regs_1
        ../../gcc/reg-stack.c:3080
0xac68d7 convert_regs_2
        ../../gcc/reg-stack.c:3214
0xac7a8d convert_regs
        ../../gcc/reg-stack.c:3249
0xac7a8d reg_to_stack
        ../../gcc/reg-stack.c:3374
0xac7a8d rest_of_handle_stack_regs
        ../../gcc/reg-stack.c:3429
0xac7a8d execute
        ../../gcc/reg-stack.c:3460

  parent reply	other threads:[~2020-12-01 17:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 17:04 [Bug c/97992] New: " gscfq@t-online.de
2020-11-25 17:12 ` [Bug c/97992] " ubizjak at gmail dot com
2020-12-01 17:50 ` gscfq@t-online.de [this message]
2020-12-01 20:25 ` [Bug target/97992] " pinskia at gcc dot gnu.org
2021-12-29  0:58 ` pinskia 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-97992-4-MBtYOwPymd@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).