https://gcc.gnu.org/g:c8981bde45d365330a5e7c2e33c8dbaf3495248a

commit r15-2956-gc8981bde45d365330a5e7c2e33c8dbaf3495248a
Author: Georg-Johann Lay <a...@gjlay.de>
Date:   Fri Aug 16 18:13:34 2024 +0200

    AVR: target/85624 - Use HImode for clrmemqi alignment.
    
    gcc/
            PR target/85624
            * config/avr/avr.md (*clrmemqi*): Use HImode for alignment operand.
    
    (cherry picked from commit 507b4e147588c0fafe952b7226dd764ebeebb103)

Diff:
---
 gcc/config/avr/avr.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md
index 359343e563d..28841e40db1 100644
--- a/gcc/config/avr/avr.md
+++ b/gcc/config/avr/avr.md
@@ -1355,8 +1355,6 @@
                                     gen_int_mode (INTVAL (operands[1]), mode));
     rtx addr0 = copy_to_mode_reg (Pmode, XEXP (operands[0], 0));
     operands[0] = gen_rtx_MEM (BLKmode, addr0);
-    // Alignment is unused; just set it to 0.
-    operands[3] = const0_rtx;
   })
 
 
@@ -1364,7 +1362,7 @@
   [(set (mem:BLK (match_operand:HI 0 "register_operand" "e"))
         (const_int 0))
    (use (match_operand:QI 1 "register_operand" "r"))
-   (use (match_operand:QI 2 "const_int_operand" "n"))
+   (use (match_operand:HI 2 "const_int_operand" "n"))
    (clobber (match_scratch:HI 3 "=0"))
    (clobber (match_scratch:QI 4 "=&1"))]
   ""
@@ -1382,7 +1380,7 @@
   [(set (mem:BLK (match_operand:HI 0 "register_operand" "e"))
         (const_int 0))
    (use (match_operand:QI 1 "register_operand" "r"))
-   (use (match_operand:QI 2 "const_int_operand" "n"))
+   (use (match_operand:HI 2 "const_int_operand" "n"))
    (clobber (match_scratch:HI 3 "=0"))
    (clobber (match_scratch:QI 4 "=&1"))
    (clobber (reg:CC REG_CC))]

Reply via email to