https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80521
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Both testcases seems to be fixed in GCC 9+.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 01 Dec 2021 21:36:25 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80521
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Both testcases seems to be fixed in GCC 9+.