https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124568
--- Comment #4 from Tomasz KamiĆski <tkaminsk at gcc dot gnu.org> --- I have backported the test to GCC-13, so the failure will not occur for GCC-12 for obvious reason. I will double check if the test would fail if on 12 branch. If so, I think I will simply remove the test case. The #pragma seem to be sufficient to silence warnings for major architecture, so the change is useful by itself. This way I will avoid breaking (unknown) list of targets, for which it does not help.
