aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2002-03-26 17:16:52 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2002-03-26 17:16:52 +0000
commit3437320b8128898d1785188494c20abbf5a3a2c9 (patch)
treed365d0e8797ddb2987daed28d27156b8630b4056
parent173028e5ab8009adf8df8c023ed7a9d71328fe3d (diff)
downloadgcc-3437320b8128898d1785188494c20abbf5a3a2c9.zip
gcc-3437320b8128898d1785188494c20abbf5a3a2c9.tar.gz
gcc-3437320b8128898d1785188494c20abbf5a3a2c9.tar.bz2
xtensa.c (xtensa_valid_move): Allow move from a register into the MAC16 accumulator.
* config/xtensa/xtensa.c (xtensa_valid_move): Allow move from a register into the MAC16 accumulator. From-SVN: r51388
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/xtensa/xtensa.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3af3e3b..aa23936 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-26 Bob Wilson <bob.wilson@acm.org>
+
+ * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
+ a register into the MAC16 accumulator.
+
2002-03-26 Andrew Cagney <ac131313@redhat.com>
* doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index e99d537..5abb5f8 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -460,7 +460,7 @@ xtensa_valid_move (mode, operands)
if (!ACC_REG_P (dst_regnum))
return true;
}
- else if (register_operand (operands[1], mode))
+ if (register_operand (operands[1], mode))
{
int src_regnum = xt_true_regnum (operands[1]);
if (!ACC_REG_P (src_regnum))