https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123786
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[16 Regression] AArch64: |[16 Regression] AArch64:
|Miscompile at -O3 |Miscompile at -O3
|-march=armv9-a |-mtune=generic-armv9-a
CC| |pinskia at gcc dot gnu.org
Component|target |rtl-optimization
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this looks like it comes down to the cost model causing changes somewhere.
Maybe an RTL opt issue.