https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90408
--- Comment #3 from Oliver Stoeneberg <oliverst at online dot de> --- Thanks - I checked with godbolt and it looks fine for -O1 and -O2 now. -Os on trunk generates an additional instruction compared to previous versions xor eax, eax