https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42587
Peter Cordes <peter at cordes dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter at cordes dot ca --- Comment #12 from Peter Cordes <peter at cordes dot ca> --- (In reply to Andi Kleen from comment #11) > Only when the first test case is fixed too https://godbolt.org/z/7M8cx3vT1 GCC8.1 -O3 for x86-64 push rbx mov ebx, edi call acpi_ut_track_stack_ptr mov eax, ebx pop rbx bswap eax ret The code in the initial report optimizes to bswap with GCC8.1 and later. Is that the test case you meant? GCC8.1 was released on May 2, 2018, well before your Nov comment, so maybe you meant something else.