sync.md ("atomic_compare_and_swap<mode>_1"): Fix operand number.
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Jan 2012 14:40:47 +0000 (14:40 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Tue, 10 Jan 2012 14:40:47 +0000 (14:40 +0000)
* config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
operand number.

From-SVN: r183067

gcc/ChangeLog
gcc/config/m68k/sync.md

index 540aa98..22535bd 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
+       operand number.
+
 2012-01-10  Jason Merrill  <jason@redhat.com>
 
        * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
index 13e29ec..a40a5bf 100644 (file)
@@ -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)