https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122332 --- Comment #5 from Sam James <sjames at gcc dot gnu.org> --- Works for me with r16-4484-g515045254f5dbd and on godbolt. Please (always) share gcc -v. What architecture is this?