public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/98973] New: [11 regression] Wrong code with gcse store motion pass
@ 2021-02-05  9:10 krebbel at gcc dot gnu.org
  2021-02-05  9:15 ` [Bug rtl-optimization/98973] " rguenth at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: krebbel at gcc dot gnu.org @ 2021-02-05  9:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98973
           Summary: [11 regression] Wrong code with gcse store motion pass
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

This test aborts when compiled on IBM Z with:
gcc -O3 t.c -o t -fgcse-sm

it succeeds with -O2 or without -fgcse-sm

Tested with Commit ID: 072f20c5559
It works with GCC 10 branch: eb15f761bc7

long a;
int b, c;
short d;
int e[] = { 1, 1, 0, 1, 1, 1, 1, 1, 1, 1 };

void
f ()
{
g:
  c = 9;
  for (; c >= 3; c--)
    {
      int h[5];
      for (; d; d--)
        ;
      for (; a;)
        if (e[c])
          b = h[4];
      if (e[c])
        continue;
      goto g;
    }
}

int
main ()
{
  f ();
  if (c != 2)
    __builtin_abort();
}

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-05-29 10:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05  9:10 [Bug rtl-optimization/98973] New: [11 regression] Wrong code with gcse store motion pass krebbel at gcc dot gnu.org
2021-02-05  9:15 ` [Bug rtl-optimization/98973] " rguenth at gcc dot gnu.org
2021-02-05 10:02 ` krebbel at gcc dot gnu.org
2021-02-05 10:03 ` krebbel at gcc dot gnu.org
2021-02-05 10:04 ` krebbel at gcc dot gnu.org
2021-02-05 10:11 ` krebbel at gcc dot gnu.org
2021-02-05 11:54 ` rguenth at gcc dot gnu.org
2021-02-05 12:19 ` jakub at gcc dot gnu.org
2021-02-05 12:39 ` rguenth at gcc dot gnu.org
2021-02-26 12:51 ` rguenth at gcc dot gnu.org
2021-04-09  8:16 ` rguenth at gcc dot gnu.org
2021-04-12 13:16 ` ebotcazou at gcc dot gnu.org
2021-04-13 15:58 ` law at gcc dot gnu.org
2021-04-27 11:40 ` [Bug rtl-optimization/98973] [11/12 " jakub at gcc dot gnu.org
2021-07-28  7:05 ` rguenth at gcc dot gnu.org
2022-04-21  7:48 ` rguenth at gcc dot gnu.org
2023-05-29 10:04 ` [Bug rtl-optimization/98973] [11/12/13/14 " jakub at gcc dot gnu.org

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