* optabs.c (expand_sync_operation): Fix typo expanding nand to and.
authorRichard Henderson <rth@redhat.com>
Mon, 18 Apr 2005 16:05:12 +0000 (09:05 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 18 Apr 2005 16:05:12 +0000 (09:05 -0700)
From-SVN: r98327

gcc/ChangeLog
gcc/optabs.c

index 621d26395a2f5691571a99385b96493e3f3eab62..eb81e48020a3f2c8caa2497ac9a83ef7388f3f42 100644 (file)
@@ -3,6 +3,8 @@
        * builtins.c (expand_builtin_sync_operation): Fold nand to and
        for constants.
 
+       * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
+
 2005-04-18  Devang Patel  <dpatel@apple.com>
 
        * config/rs6000/atlivec.md (mulv4si3): New pattern.
index 47eec4bbcf3b9460b2d988aefe0d5b86990ac749..90a42c25d6406bdf018cf2a0698356f7695ede8d 100644 (file)
@@ -5751,7 +5751,7 @@ expand_sync_operation (rtx mem, rtx val, enum rtx_code code)
 
     case NOT:
       icode = sync_nand_optab[mode];
-      if (icode != CODE_FOR_nothing)
+      if (icode == CODE_FOR_nothing)
        {
          icode = sync_and_optab[mode];
          if (icode != CODE_FOR_nothing)