[Bug middle-end/101934] [11 Regression] aarch64 memset code creates unaligned stores for -mstrict-align

2021-11-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101934

Andrew Pinski  changed:

   What|Removed |Added

 CC||felix at breitweiser dot de

--- Comment #10 from Andrew Pinski  ---
*** Bug 103100 has been marked as a duplicate of this bug. ***

[Bug middle-end/101934] [11 Regression] aarch64 memset code creates unaligned stores for -mstrict-align

2021-09-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101934

Andrew Pinski  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Andrew Pinski  ---
Fixed.

[Bug middle-end/101934] [11 Regression] aarch64 memset code creates unaligned stores for -mstrict-align

2021-09-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101934

--- Comment #8 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Andrew Pinski
:

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

commit r11-9001-gf00530266f89b28e8286cdd2f587e046a27d2193
Author: Andrew Pinski 
Date:   Tue Aug 31 04:41:14 2021 +

Fix target/101934: aarch64 memset code creates unaligned stores for
-mstrict-align

The problem here is the aarch64_expand_setmem code did not check
STRICT_ALIGNMENT if it is creating an overlapping store.
This patch adds that check and the testcase works.

gcc/ChangeLog:

PR target/101934
* config/aarch64/aarch64.c (aarch64_expand_setmem):
Check STRICT_ALIGNMENT before creating an overlapping
store.

gcc/testsuite/ChangeLog:

PR target/101934
* gcc.target/aarch64/memset-strict-align-1.c: New test.

(cherry picked from commit a45786e9a31f995087d8cb42bc3a4fe06911e588)

[Bug middle-end/101934] [11 Regression] aarch64 memset code creates unaligned stores for -mstrict-align

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101934

Andrew Pinski  changed:

   What|Removed |Added

Summary|[11/12 Regression] aarch64  |[11 Regression] aarch64
   |memset code creates |memset code creates
   |unaligned stores for|unaligned stores for
   |-mstrict-align  |-mstrict-align
  Known to work||12.0

--- Comment #7 from Andrew Pinski  ---
Fixed on the trunk so far.  Will let sit on the trunk for at least a week
before backporting it.