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: sync_lock_test_and_set testcases


On Thu, Aug 18, 2005 at 07:53:41PM +0200, Adrian Straetling wrote:
> However, in md.texi it states: "The true contents of the memory operand
> are implementation defined." Does this testcase intentionally check for
> compare_exchange behaviour or is it overly stringent?
> 
> A fix could be to mask the result with 1 before comparing? At least that
> would work for me.

I suppose you could change the test to != 0.  I don't see supporting
the pa test-and-clear variant with this.


r~


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