https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118696
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Stefan Schulze Frielinghaus from comment #6) > Patch LGTM and I started a bootstrap+regtest which will finish approximately > in 4 hours. Sorry for the hassle and thanks for fixing this so quickly! > > I think what is missing is to adapt the existing tests: Oops, sure. I should have looked at the commits in more detail to find these, otherwise it would be found by my regtest but that will take too long. BTW, I was surprised that only MIN_EXPR/MAX_EXPR (and likely ABS_EXPR) is optimized, while __attribute__((noipa)) __int128 bar (__int128 x, __int128 y, __int128 z, __int128 w) { return x < y ? z : w; } is not. That could be done with the same comparison code and just using different vectors for the vector select.