diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e2025a687deeb80d50dd39deda70cc9ac4ec775..f65ed2307942baf736cb4144df2f7564ae495c44 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
+
+	  * doc/md.texi: Adapt to implementation.
+
 2005-12-06  Andreas Schwab  <schwab@suse.de>
 
 	* opts.c (decode_options): Fix typo in message.
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index 5bbeaa05b38eb27a8a338598432c191ae76a4e26..5933cc8f5e365a83cc2e32483eb04025aef0d872 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -4200,7 +4200,7 @@ These patterns emit code for an atomic operation on memory.
 Operand 0 is the memory on which the atomic operation is performed.
 Operand 1 is the second operand to the binary operator.
 
-The ``nand'' operation is @code{op0 & ~op1}.
+The ``nand'' operation is @code{~op0 & op1}.
 
 This pattern must issue any memory barrier instructions such that all
 memory operations before the atomic operation occur before the atomic