https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89701
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> --- Created attachment 50051 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50051&action=edit tested patch based on latest trunk Will send patch in GCC12.