]> granicus.if.org Git - llvm/commitdiff
LangRef: Fix/improve cmpxchg wording
authorMatthias Braun <matze@braunis.de>
Wed, 9 Aug 2017 22:22:04 +0000 (22:22 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 9 Aug 2017 22:22:04 +0000 (22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310533 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.rst

index b074daef0bf934acff54bcf76bf9ae5c96bba290..934c69dde033f97aedcad15401ad59043817c165 100644 (file)
@@ -7704,9 +7704,9 @@ Semantics:
 """"""""""
 
 The contents of memory at the location specified by the '``<pointer>``' operand
-is read and compared to '``<cmp>``'; if the read value is the equal, the
-'``<new>``' 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 '``<cmp>``'; if the values are equal, '``<new>``' 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 ``<new>`` even if the comparison