https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96733
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- In my GCC fork I just switched clamp to use min and max unconditionally: https://gitlab.com/jonathan-wakely/gcc/-/commit/ec5ecc2e142fbb7fc532a5ef9527b61675bcbfc4