avr.md (setmemhi): Make sure match_dup operand number comes before match_scratch.
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Mar 2017 08:52:05 +0000 (09:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 Mar 2017 08:52:05 +0000 (09:52 +0100)
* config/avr/avr.md (setmemhi): Make sure match_dup
operand number comes before match_scratch.

From-SVN: r245969

gcc/ChangeLog
gcc/config/avr/avr.md

index 05f6017c9739a32a6bf5533ebd48ae685bc07b47..212ebc64f1cd76520842c87633f469543d0457fe 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-08  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/avr/avr.md (setmemhi): Make sure match_dup
+       operand number comes before match_scratch.
+
 2017-03-08  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/79920
index c246e676698ec09b10e4b6dd569cf53043d913a7..3a6dec2b0c0e01d98c005322054bd121c51dfcce 100644 (file)
                    (match_operand 2 "const_int_operand" ""))
               (use (match_operand:HI 1 "const_int_operand" ""))
               (use (match_operand:HI 3 "const_int_operand" ""))
-              (clobber (match_scratch:HI 4 ""))
-              (clobber (match_dup 5))])]
+              (clobber (match_scratch:HI 5 ""))
+              (clobber (match_dup 4))])]
   ""
   {
     rtx addr0;
       FAIL;
 
     mode = u8_operand (operands[1], VOIDmode) ? QImode : HImode;
-    operands[5] = gen_rtx_SCRATCH (mode);
+    operands[4] = gen_rtx_SCRATCH (mode);
     operands[1] = copy_to_mode_reg (mode,
                                     gen_int_mode (INTVAL (operands[1]), mode));
     addr0 = copy_to_mode_reg (Pmode, XEXP (operands[0], 0));