]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/24757 (__sync_fetch_and_add on ia64)
authorAndreas Schwab <schwab@suse.de>
Sun, 20 Nov 2005 10:43:43 +0000 (10:43 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Sun, 20 Nov 2005 10:43:43 +0000 (10:43 +0000)
PR target/24757
* config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
insn.

From-SVN: r107246

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 991b8838c9c7394a46e048a653f2204affa87a41..9371555a60af0702090d938de327a761a977915f 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-20  Andreas Schwab  <schwab@suse.de>
+
+       PR target/24757
+       * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
+       insn.
+
 2005-11-19  Richard Henderson  <rth@redhat.com>
 
        PR tree-opt/24665
index d1003b3d253769c69f79fc2736ef7a21b18953f2..b11583d19a702af5233764ad18c3be0c408ec09e 100644 (file)
@@ -2113,7 +2113,7 @@ ia64_expand_atomic_op (enum rtx_code code, rtx mem, rtx val,
 
   emit_insn (GEN_FCN (icode) (cmp_reg, mem, ar_ccv, new_reg));
 
-  emit_cmp_and_jump_insns (cmp_reg, old_reg, EQ, NULL, DImode, true, label);
+  emit_cmp_and_jump_insns (cmp_reg, old_reg, NE, NULL, DImode, true, label);
 }
 \f
 /* Begin the assembly file.  */