https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121962
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 62391 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62391&action=edit Patch under testing This is for the first problem.