[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2013-11-19 Thread drepper.fsp+rhbz at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 Ulrich Drepper changed: What|Removed |Added CC||drepper.fsp+rhbz at gmail dot com --- C

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2013-11-19 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 Marc Glisse changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-10-01 Thread amacleod at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #9 from Andrew Macleod 2012-10-01 15:50:26 UTC --- Author: amacleod Date: Mon Oct 1 15:50:09 2012 New Revision: 191929 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191929 Log: 2012-10-01 Andrew MacLeod

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-08-23 Thread drepper.fsp at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #8 from Ulrich Drepper 2012-08-23 15:41:49 UTC --- (In reply to comment #7) > Check to see if it solves the problem as well. I tested it. Seems to work in all cases and does not disturb other optimizations like comparisons with zer

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-08-23 Thread amacleod at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 Andrew Macleod changed: What|Removed |Added Attachment #27927|0 |1 is obsolete|

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-08-02 Thread drepper.fsp at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #6 from Ulrich Drepper 2012-08-03 02:16:57 UTC --- (In reply to comment #5) > This patch introduces atomic_fetch_sub: Seems to work nicely.

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-08-02 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #5 from Uros Bizjak 2012-08-02 17:35:30 UTC --- Created attachment 27927 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27927 Patch that introduces atomic_fetch_sub with const_int operands This patch introduces atomic_fetch_sub:

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-08-02 Thread drepper.fsp at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #4 from Ulrich Drepper 2012-08-02 14:33:19 UTC --- One more data point. In a micro-benchmark which uses realistic code used in production the change from __sync_sub_and_fetch(var, constant) to __sync_add_and_fetch(var, -cons

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-08-01 Thread drepper.fsp at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #3 from Ulrich Drepper 2012-08-01 16:06:33 UTC --- (In reply to comment #2) > (In reply to comment #1) > > Use __atomic_add_fetch and __atomic_fetch_sub in the testcase, and you will > > Eh, __atomic_fetch_add. Yes, but the compiler

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-07-24 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #2 from Uros Bizjak 2012-07-24 19:22:00 UTC --- (In reply to comment #1) > Use __atomic_add_fetch and __atomic_fetch_sub in the testcase, and you will Eh, __atomic_fetch_add.

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2012-07-24 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 --- Comment #1 from Uros Bizjak 2012-07-24 19:21:02 UTC --- Use __atomic_add_fetch and __atomic_fetch_sub in the testcase, and you will get: : 0: 89 f8 mov%edi,%eax 2: f0 0f c1 05 00 00 00lock