https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94617
--- Comment #2 from David Seifert <soap at gentoo dot org> --- (In reply to Richard Biener from comment #1) > Why do you think this is terrible? Aggressive use of conditional moves is > not > a good idea in general. I've benchmarked the code, and on a Zen 2 the GCC produced code is 1.8x slower than the Clang code. My gut feeling is the jump instruction killing performance. I haven't tried it on an older CPU, but I can give it a try there too.