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)
llvm-svn: 310533

llvm/docs/LangRef.rst

index b074dae..934c69d 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