From: Andreas Schwab Date: Sun, 20 Nov 2005 10:43:43 +0000 (+0000) Subject: re PR target/24757 (__sync_fetch_and_add on ia64) X-Git-Tag: releases/gcc-4.2.0~5852 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6819a4637b2645bee9a60d8a5d422b3ca6e2c414;p=thirdparty%2Fgcc.git re PR target/24757 (__sync_fetch_and_add on ia64) PR target/24757 * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp insn. From-SVN: r107246 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 991b8838c9c7..9371555a60af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-11-20 Andreas Schwab + + PR target/24757 + * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp + insn. + 2005-11-19 Richard Henderson PR tree-opt/24665 diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index d1003b3d2537..b11583d19a70 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -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); } /* Begin the assembly file. */