summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-18 16:05:12 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-18 16:05:12 +0000
commitd2ffcd9b02160d46e8495e970545333f25dfe58f (patch)
tree5a9d089208b299a269cd659f279d9838bb7e517c
parent93f1614477e6b502dbd32158391cd948d563768e (diff)
downloadppe42-gcc-d2ffcd9b02160d46e8495e970545333f25dfe58f.tar.gz
ppe42-gcc-d2ffcd9b02160d46e8495e970545333f25dfe58f.zip
* optabs.c (expand_sync_operation): Fix typo expanding nand to and.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98327 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/optabs.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 621d26395a2..eb81e48020a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 47eec4bbcf3..90a42c25d64 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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)
OpenPOWER on IntegriCloud