]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: target/85624 - Use HImode for clrmemqi alignment.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 16 Aug 2024 16:13:34 +0000 (18:13 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Fri, 16 Aug 2024 17:14:55 +0000 (19:14 +0200)
gcc/
PR target/85624
* config/avr/avr.md (*clrmemqi*): Use HImode for alignment operand.

(cherry picked from commit 507b4e147588c0fafe952b7226dd764ebeebb103)

gcc/config/avr/avr.md

index 359343e563d5d72ac682747b553047546f755710..28841e40db13dc2f095a64e4bc894c122cd179f5 100644 (file)
                                     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;
   })
 
 
   [(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"))]
   ""
   [(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))]