public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/55981] std::atomic store is split in two smaller stores
Date: Tue, 15 Jan 2013 14:30:00 -0000	[thread overview]
Message-ID: <bug-55981-4-3nGHWp6VKF@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55981-4@http.gcc.gnu.org/bugzilla/>


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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |ubizjak at gmail dot com
                   |gnu.org                     |
   Target Milestone|---                         |4.7.3

--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2013-01-15 14:29:44 UTC ---
Attached patch generates:

        movabsq $4294967298, %rdx
        subl    $1, %eax
        movq    %rdx, y(%rip)
        movabsq $12884901892, %rdx
        mfence
        movq    %rdx, y(%rip)
        mfence

while non-patched compiler generates:

        movl    $2, y(%rip)
        movl    $1, y+4(%rip)
        subl    $1, %eax
        mfence
        movl    $4, y(%rip)
        movl    $3, y+4(%rip)
        mfence


  parent reply	other threads:[~2013-01-15 14:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 22:39 [Bug other/55981] New: " eugeni.stepanov at gmail dot com
2013-01-14 22:46 ` [Bug other/55981] " eugeni.stepanov at gmail dot com
2013-01-14 22:48 ` eugeni.stepanov at gmail dot com
2013-01-14 23:08 ` pinskia at gcc dot gnu.org
2013-01-15 12:30 ` [Bug target/55981] " paulmck at linux dot vnet.ibm.com
2013-01-15 14:22 ` ubizjak at gmail dot com
2013-01-15 14:26 ` ubizjak at gmail dot com
2013-01-15 14:30 ` ubizjak at gmail dot com [this message]
2013-01-15 19:38 ` ubizjak at gmail dot com
2013-01-15 19:39 ` ubizjak at gmail dot com
2013-01-15 20:02 ` ubizjak at gmail dot com
2013-01-17 16:25 ` uros at gcc dot gnu.org
2013-01-17 22:51 ` uros at gcc dot gnu.org
2013-01-17 22:54 ` ubizjak at gmail dot com
2014-02-16 13:14 ` jackie.rosen at hushmail dot com

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-55981-4-3nGHWp6VKF@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).