https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120135
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 61340 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61340&action=edit Testcase from the godbolt link Next time please attach the testcase. Note bugzilla has a way to paste in the attachment so you can use that if you want not to upload a file.