diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-02-13 21:22:50 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-02-13 21:22:50 +0100 |
commit | 9aa484f5a9c74509ecf9722a518b962f0634dad2 (patch) | |
tree | 1bb519d1d5159b207857834386da8bb2e6d1157c /gcc/match.pd | |
parent | 43edc4f5ac0d0a679b87338043f5d6a372750533 (diff) | |
download | gcc-9aa484f5a9c74509ecf9722a518b962f0634dad2.zip gcc-9aa484f5a9c74509ecf9722a518b962f0634dad2.tar.gz gcc-9aa484f5a9c74509ecf9722a518b962f0634dad2.tar.bz2 |
re PR middle-end/84309 (Wrong-code with -ffast-math)
PR middle-end/84309
* match.pd (pow(C,x) -> exp(log(C)*x)): Use exp2s and log2s instead
of exps and logs in the use_exp2 case.
* gcc.dg/pr84309-2.c: New test.
From-SVN: r257634
Diffstat (limited to 'gcc/match.pd')
-rw-r--r-- | gcc/match.pd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/match.pd b/gcc/match.pd index 833effa..f759711 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -4021,7 +4021,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) /* As libmvec doesn't have a vectorized exp2, defer optimizing this until after vectorization. */ (if (canonicalize_math_after_vectorization_p ()) - (exps (mult (logs @0) @1)))))))) + (exp2s (mult (log2s @0) @1)))))))) (for sqrts (SQRT) cbrts (CBRT) |