From: Georg-Johann Lay Date: Fri, 16 Aug 2024 16:13:34 +0000 (+0200) Subject: AVR: target/85624 - Use HImode for clrmemqi alignment. X-Git-Tag: basepoints/gcc-16~6597 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8981bde45d365330a5e7c2e33c8dbaf3495248a;p=thirdparty%2Fgcc.git 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 --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))]