public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100182] New: [8/9/10/11/12 Regression] Miscompilation of atomic_float/1.cc on i686
@ 2021-04-21 12:35 jakub at gcc dot gnu.org
  2021-04-21 12:35 ` [Bug target/100182] " jakub at gcc dot gnu.org
                   ` (41 more replies)
  0 siblings, 42 replies; 43+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-21 12:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100182
           Summary: [8/9/10/11/12 Regression] Miscompilation of
                    atomic_float/1.cc on i686
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

Since r7-1112-gbeed3701c796842abbfb27d7484b35bd82818740
the following testcase distilled from 29_atomics/atomic_float/1.cc with -O2
-march=i686 -m32 aborts on i686-linux:
struct __attribute__((aligned (8))) S { double _M_fp; };
union U { double d; unsigned long long int l; };

__attribute__((noipa)) void
foo (void)
{
  struct S a0, a1;
  union U u;
  double d0, d1;
  a0._M_fp = 0.0;
  a1._M_fp = 1.0;
  __atomic_store_8 (&a0._M_fp, __atomic_load_8 (&a1._M_fp, __ATOMIC_SEQ_CST),
__ATOMIC_SEQ_CST);
  u.l = __atomic_load_8 (&a0._M_fp, __ATOMIC_SEQ_CST);
  d0 = u.d;
  u.l = __atomic_load_8 (&a1._M_fp, __ATOMIC_SEQ_CST);
  d1 = u.d;
  if (d0 != d1)
    __builtin_abort ();
}

int
main ()
{
  foo ();
  return 0;
}

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

end of thread, other threads:[~2021-08-03 18:30 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 12:35 [Bug target/100182] New: [8/9/10/11/12 Regression] Miscompilation of atomic_float/1.cc on i686 jakub at gcc dot gnu.org
2021-04-21 12:35 ` [Bug target/100182] " jakub at gcc dot gnu.org
2021-04-21 14:23 ` jakub at gcc dot gnu.org
2021-04-21 15:35 ` jakub at gcc dot gnu.org
2021-04-21 15:41 ` jakub at gcc dot gnu.org
2021-04-21 15:42 ` jakub at gcc dot gnu.org
2021-04-22  8:28 ` jakub at gcc dot gnu.org
2021-04-22 13:10 ` [Bug target/100182] [8/9/10/11/12 Regression] Miscompilation of atomic_float/1.cc and atomic_float/wait_notify.cc " cvs-commit at gcc dot gnu.org
2021-04-22 13:10 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:53 ` ubizjak at gmail dot com
2021-04-22 17:58 ` jakub at gcc dot gnu.org
2021-04-22 18:09 ` ubizjak at gmail dot com
2021-04-22 18:41 ` ubizjak at gmail dot com
2021-04-23  6:13 ` ubizjak at gmail dot com
2021-04-23  7:40 ` jakub at gcc dot gnu.org
2021-04-23  7:52 ` ubizjak at gmail dot com
2021-04-23  7:54 ` ubizjak at gmail dot com
2021-04-23  7:56 ` jakub at gcc dot gnu.org
2021-04-23  8:02 ` ubizjak at gmail dot com
2021-04-23  8:13 ` ubizjak at gmail dot com
2021-04-23  8:25 ` jakub at gcc dot gnu.org
2021-04-23  8:36 ` jakub at gcc dot gnu.org
2021-04-23  8:41 ` jakub at gcc dot gnu.org
2021-04-23  9:20 ` ubizjak at gmail dot com
2021-04-23 15:30 ` cvs-commit at gcc dot gnu.org
2021-04-28 10:44 ` cvs-commit at gcc dot gnu.org
2021-04-28 13:33 ` cvs-commit at gcc dot gnu.org
2021-04-28 18:02 ` cvs-commit at gcc dot gnu.org
2021-04-28 18:02 ` cvs-commit at gcc dot gnu.org
2021-04-28 18:09 ` ubizjak at gmail dot com
2021-07-19 13:08 ` hjl.tools at gmail dot com
2021-07-19 14:40 ` ubizjak at gmail dot com
2021-07-19 22:06 ` hjl.tools at gmail dot com
2021-07-19 22:18 ` ubizjak at gmail dot com
2021-07-20  4:23 ` cvs-commit at gcc dot gnu.org
2021-07-20  4:30 ` cvs-commit at gcc dot gnu.org
2021-07-20  4:36 ` cvs-commit at gcc dot gnu.org
2021-07-20  4:39 ` cvs-commit at gcc dot gnu.org
2021-07-20  4:41 ` ubizjak at gmail dot com
2021-07-31 19:24 ` hjl.tools at gmail dot com
2021-08-03 18:14 ` hjl.tools at gmail dot com
2021-08-03 18:24 ` ubizjak at gmail dot com
2021-08-03 18:30 ` hjl.tools at gmail dot com

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