https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82004
--- Comment #39 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 28 19:15:39 2018 New Revision: 258930 URL: https://gcc.gnu.org/viewcvs?rev=258930&root=gcc&view=rev Log: PR tree-optimization/82004 * gimple-match-head.c (optimize_pow_to_exp): New function. * match.pd (pow(C,x) -> exp(log(C)*x)): Wrap with #if GIMPLE. Don't fold to exp if optimize_pow_to_exp is false. * gcc.dg/pr82004.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr82004.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-match-head.c trunk/gcc/match.pd trunk/gcc/testsuite/ChangeLog