diff options
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index 053b420..478aab2 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -4703,10 +4703,12 @@ simplify_if_then_else (x) /* Convert a == b ? b : a to "a". */ if (true_code == EQ && ! side_effects_p (cond) + && (! FLOAT_MODE_P (mode) || flag_fast_math) && rtx_equal_p (XEXP (cond, 0), false) && rtx_equal_p (XEXP (cond, 1), true)) return false; else if (true_code == NE && ! side_effects_p (cond) + && (! FLOAT_MODE_P (mode) || flag_fast_math) && rtx_equal_p (XEXP (cond, 0), true) && rtx_equal_p (XEXP (cond, 1), false)) return true; |