https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69570
--- Comment #12 from Bernd Schmidt <bernds at gcc dot gnu.org> --- Or lose the equality tests on the max values, instead use something like if (b > r && b >= g) I suppose that could still have problems if b and g are equal and one of them is spilled. Someone who knows that code would have to say whether that's a problem or not.