pdp11.md (movmemhi): Adjust operand numbers to match_scratch operand is highest.
authorJeff Law <law@redhat.com>
Mon, 13 Mar 2017 17:43:19 +0000 (11:43 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 13 Mar 2017 17:43:19 +0000 (11:43 -0600)
* config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
match_scratch operand is highest.

From-SVN: r246100

gcc/ChangeLog
gcc/config/pdp11/pdp11.md

index a4cd56fc4b79e12c10d7c455b9b96ecd463a5cef..124dca320c891182e6b1091a5e5e90a45865013e 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-13  Jeff Law  <law@redhat.com>
+
+       * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
+       match_scratch operand is highest.
+
 2017-03-13  Martin Liska  <mliska@suse.cz>
 
        PR middle-end/78339
index ee820f21bba9cb6f3e50a9ec7cca1de4a986cb09..dde7711e09b64bfc448dc4baaef91e221f044b53 100644 (file)
                   (match_operand:BLK 1 "general_operand" "g,g"))
              (use (match_operand:HI 2 "general_operand" "n,mr"))
              (use (match_operand:HI 3 "immediate_operand" "i,i"))
-             (clobber (match_scratch:HI 4 "=&r,X"))
+             (clobber (match_scratch:HI 6 "=&r,X"))
+             (clobber (match_dup 4))
              (clobber (match_dup 5))
-             (clobber (match_dup 6))
              (clobber (match_dup 2))])]
   "(TARGET_BCOPY_BUILTIN)"
   "
     = replace_equiv_address (operands[1],
                             copy_to_mode_reg (Pmode, XEXP (operands[1], 0)));
 
-  operands[5] = XEXP (operands[0], 0);
-  operands[6] = XEXP (operands[1], 0);
+  operands[4] = XEXP (operands[0], 0);
+  operands[5] = XEXP (operands[1], 0);
 }")