https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66782 --- Comment #16 from marcus at jet dot franken.de --- I can confirm that this testcase fixed here and in Wine. I have however found another issue with register clobbering and opened a new bug 66845 for it.