https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67971
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note we should able to optimize this just to int f1 (int cond, double x, double y) { double z1, z2; z2 = __builtin_cos (cond ? x : y); return z2 == z2; } But that is 64700.