https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126732
--- Comment #3 from Alfred Agrell <blubban at gmail dot com> --- I used 16.1. I thought I included a godbolt link, but apparently I forgot it. That is indeed fixed in 17, which also removes a xor eax,eax. Didn't even notice it's redundant. Well done. https://godbolt.org/z/zqq7E11fG
