diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-08-16 18:13:34 +0200 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-08-16 19:14:55 +0200 |
commit | c8981bde45d365330a5e7c2e33c8dbaf3495248a (patch) | |
tree | e89dcfabfb283e1625a62a5c45e294e99f21518c /gcc | |
parent | 07ece73d4712c68144a07681b24a8c1f963256ab (diff) | |
download | gcc-c8981bde45d365330a5e7c2e33c8dbaf3495248a.zip gcc-c8981bde45d365330a5e7c2e33c8dbaf3495248a.tar.gz gcc-c8981bde45d365330a5e7c2e33c8dbaf3495248a.tar.bz2 |
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)
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/avr/avr.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index 359343e..28841e4 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))] |