https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94613
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- You might be able to turn this into a RTL testcase with a C driver to make it suitable for a dg-do run testcase. There's a combine testcase at gcc.dg/rtl/aarch64/asr_div1.c you could look at (just not dg-do run)