Under -enable-unsafe-fp-math SELECT_CC lowering in AArch64
transforms floating point comparisons of the form "a == 0.0 ? 0.0 : x" to
"a == 0.0 ? a : x". But it incorrectly assumes that 'x' and 'a' have
the same type which can lead to a wrong CSEL node that fails later
due to nonsensical copies.
This issue was introduced in https://reviews.llvm.org/rL284531