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]

m68k: fix atomic_compare_and_swap<mode>_1


This fixes a typo in the atomic_compare_and_swap<mode>_1 pattern.
Tested on m68k-linux.

Andreas.

2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>

	* config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
	operand number.

Index: gcc/config/m68k/sync.md
===================================================================
--- gcc/config/m68k/sync.md	(revision 183064)
+++ gcc/config/m68k/sync.md	(working copy)
@@ -1,5 +1,5 @@
 ;; GCC machine description for m68k synchronization instructions.
-;; Copyright (C) 2011
+;; Copyright (C) 2011, 2012
 ;; Free Software Foundation, Inc.
 ;;
 ;; This file is part of GCC.
@@ -41,7 +41,7 @@
   [(set (match_operand:I 1 "register_operand" "=d")
 	(unspec_volatile:I
 	  [(match_operand:I 2 "memory_operand" "+m")
-	   (match_operand:I 3 "register_operand" "0")
+	   (match_operand:I 3 "register_operand" "1")
 	   (match_operand:I 4 "register_operand" "d")]
 	  UNSPECV_CAS_1))
    (set (match_dup 2)

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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