https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84592
--- Comment #7 from Tom de Vries <vries at gcc dot gnu.org> --- Created attachment 43571 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43571&action=edit Tentative patch Works on nvptx for the examples from comment 0, comment 3 and comment 5.