re PR middle-end/84309 (Wrong-code with -ffast-math)
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Feb 2018 20:22:50 +0000 (21:22 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Feb 2018 20:22:50 +0000 (21:22 +0100)
commit9aa484f5a9c74509ecf9722a518b962f0634dad2
tree1bb519d1d5159b207857834386da8bb2e6d1157c
parent43edc4f5ac0d0a679b87338043f5d6a372750533
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
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84309-2.c [new file with mode: 0644]