This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, i386]: Implement atomic_fetch_sub


On 08/23/2012 08:59 AM, Andrew MacLeod wrote:
> 2012-08-23  Andrew MacLeod  <amacleod@redhat.com>
> 
> gcc
> 	PR target/54087
> 	* optabs.c (expand_atomic_fetch_op_no_fallback): New.  Factored code
> 	from expand_atomic_fetch_op.
> 	(expand_atomic_fetch_op):  iTry atomic_{add|sub} operations in terms of
> 	the other one if direct opcode fails.
> 
> testsuite
> 	* gcc.dg/pr54087.c:  New testcase for atomic_sub -> atomic_add when
> 	atomic_sub fails.

Ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]