public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/52242] New: [4.7 regression] libgomp.c/atomic-2.c failure on s390x
@ 2012-02-14  8:34 krebbel at gcc dot gnu.org
  2012-02-14  8:35 ` [Bug tree-optimization/52242] " krebbel at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: krebbel at gcc dot gnu.org @ 2012-02-14  8:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52242

             Bug #: 52242
           Summary: [4.7 regression] libgomp.c/atomic-2.c failure on s390x
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: krebbel@gcc.gnu.org


181748        rth       /* ??? Assume BIGGEST_ALIGNMENT *is* aligned.  */
181748        rth       if (exact_log2 (align) >= index
181748        rth       || align * BITS_PER_UNIT >= BIGGEST_ALIGNMENT)

That broke the atomic-2.c libgomp testcase on s390x. We have
BIGGEST_ALIGNMENT of 64. A 128 bit long double does not need to be
aligned better than 64 bit in memory. However, the 128bit compare and
swap instruction we have requires the operands to be naturally
aligned. In the testcase a compare and swap double instruction is used
on a long double value which is only 8 byte aligned in memory.


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

end of thread, other threads:[~2012-03-05 20:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-14  8:34 [Bug tree-optimization/52242] New: [4.7 regression] libgomp.c/atomic-2.c failure on s390x krebbel at gcc dot gnu.org
2012-02-14  8:35 ` [Bug tree-optimization/52242] " krebbel at gcc dot gnu.org
2012-02-14 12:12 ` rguenth at gcc dot gnu.org
2012-03-05 19:13 ` [Bug tree-optimization/52242] [4.7/4.8 " rth at gcc dot gnu.org
2012-03-05 19:52 ` rth at gcc dot gnu.org
2012-03-05 19:54 ` rth at gcc dot gnu.org
2012-03-05 20:04 ` rth 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).