https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114140
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- At least on the godbolt link, if I add -fsignaling-nans option, it prints inf/inf/nan/nan for both types. So, in that case it looks like a non-bug to me. fmaxq/fminq get the same behavior regardless of the option simply because fmaxq/fminq aren't builtins and so aren't constant folded.