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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087
Marc Glisse changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087
Andrew Macleod changed:
What|Removed |Added
Attachment #27927|0 |1
is obsolete|
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.
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:
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
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
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.
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
11 matches
Mail list logo