From: Matthias Braun Date: Wed, 9 Aug 2017 22:22:04 +0000 (+0000) Subject: LangRef: Fix/improve cmpxchg wording X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21784bb6fb504a17ce7165ea50549f7a49d8b971;p=llvm LangRef: Fix/improve cmpxchg wording git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310533 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.rst b/docs/LangRef.rst index b074daef0bf..934c69dde03 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -7704,9 +7704,9 @@ Semantics: """""""""" The contents of memory at the location specified by the '````' operand -is read and compared to '````'; if the read value is the equal, the -'````' is written. The original value at the location is returned, together -with a flag indicating success (true) or failure (false). +is read and compared to '````'; if the values are equal, '````' is +written to the location. The original value at the location is returned, +together with a flag indicating success (true) or failure (false). If the cmpxchg operation is marked as ``weak`` then a spurious failure is permitted: the operation may not write ```` even if the comparison