diff options
author | Richard Henderson <rth@redhat.com> | 2005-04-18 09:05:12 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-04-18 09:05:12 -0700 |
commit | 46c94db61830d164a410f0f09d605c9cecedb2eb (patch) | |
tree | 5a9d089208b299a269cd659f279d9838bb7e517c /gcc | |
parent | 5ce7999da09653071dbee7c87229151ea288a7cd (diff) | |
download | gcc-46c94db61830d164a410f0f09d605c9cecedb2eb.zip gcc-46c94db61830d164a410f0f09d605c9cecedb2eb.tar.gz gcc-46c94db61830d164a410f0f09d605c9cecedb2eb.tar.bz2 |
* optabs.c (expand_sync_operation): Fix typo expanding nand to and.
From-SVN: r98327
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/optabs.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 621d263..eb81e48 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 47eec4b..90a42c2 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) |