public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/97851] New: aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60
@ 2020-11-16 14:45 acoplan at gcc dot gnu.org
  2020-11-16 15:25 ` [Bug rtl-optimization/97851] " rguenth at gcc dot gnu.org
  2020-11-20 10:55 ` zhroma at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: acoplan at gcc dot gnu.org @ 2020-11-16 14:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97851
           Summary: aarch64: Wrong code with -Os -fmodulo-sched since
                    r7-879-g43c0068e60
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

AArch64 GCC miscompiles the following testcase:

int a, b, c;
short d;
void e(void) {
  unsigned f = 0;
  for (; f <= 2; f++) {
    int g[1];
    int h = (long)g;
    c = 0;
    for (; c < 10; c++)
      g[0] = a = 0;
    for (; a <= 2; a++)
      b = d;
  }
}
int main(void) {
  e();
  if (a != 3)
    __builtin_abort();
}

with -Os -fmodulo-sched since r7-879-g43c0068e60ad1518cc6196eeac51eb811fe62f8f.

It seems likely that this is just a latent bug revealed by the above revision,
however (hence tagging as rtl-optimization). Possibly related to PR97440 or
PR97421.

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

* [Bug rtl-optimization/97851] aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60
  2020-11-16 14:45 [Bug rtl-optimization/97851] New: aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60 acoplan at gcc dot gnu.org
@ 2020-11-16 15:25 ` rguenth at gcc dot gnu.org
  2020-11-20 10:55 ` zhroma at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-16 15:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zhroma at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Indeed.

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

* [Bug rtl-optimization/97851] aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60
  2020-11-16 14:45 [Bug rtl-optimization/97851] New: aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60 acoplan at gcc dot gnu.org
  2020-11-16 15:25 ` [Bug rtl-optimization/97851] " rguenth at gcc dot gnu.org
@ 2020-11-20 10:55 ` zhroma at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: zhroma at gcc dot gnu.org @ 2020-11-20 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

Roman Zhuykov <zhroma at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Roman Zhuykov <zhroma at gcc dot gnu.org> ---
(In reply to Alex Coplan from comment #0)
> Possibly related to PR97440 or PR97421.

Yep, all those are actually duplicates.

Thanks Richard for CCing!

*** This bug has been marked as a duplicate of bug 97421 ***

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

end of thread, other threads:[~2020-11-20 10:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 14:45 [Bug rtl-optimization/97851] New: aarch64: Wrong code with -Os -fmodulo-sched since r7-879-g43c0068e60 acoplan at gcc dot gnu.org
2020-11-16 15:25 ` [Bug rtl-optimization/97851] " rguenth at gcc dot gnu.org
2020-11-20 10:55 ` zhroma 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).