Fix generic fmax, fmin sNaN handling (bug 20947).