xtensa.c (xtensa_valid_move): Allow move from a register into the MAC16 accumulator.
authorBob Wilson <bob.wilson@acm.org>
Tue, 26 Mar 2002 17:16:52 +0000 (17:16 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Tue, 26 Mar 2002 17:16:52 +0000 (17:16 +0000)
        * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
        a register into the MAC16 accumulator.

From-SVN: r51388

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index 3af3e3b..aa23936 100644 (file)
@@ -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.
index e99d537..5abb5f8 100644 (file)
@@ -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))