diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-03-08 09:52:05 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-03-08 09:52:05 +0100 |
commit | 0b9f099afdac244e8b30ea10e776039955532248 (patch) | |
tree | 1869124e9304a2fc26204d82ad64477ca96050ec | |
parent | 61fdfd8c51a99f07b59706037cb2946bc793480c (diff) | |
download | gcc-0b9f099afdac244e8b30ea10e776039955532248.zip gcc-0b9f099afdac244e8b30ea10e776039955532248.tar.gz gcc-0b9f099afdac244e8b30ea10e776039955532248.tar.bz2 |
avr.md (setmemhi): Make sure match_dup operand number comes before match_scratch.
* config/avr/avr.md (setmemhi): Make sure match_dup
operand number comes before match_scratch.
From-SVN: r245969
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/avr/avr.md | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05f6017..212ebc6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index c246e67..3a6dec2 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -1062,8 +1062,8 @@ (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; @@ -1077,7 +1077,7 @@ 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)); |