Move powi folds to match.pd
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 09:31:28 +0000 (09:31 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 09:31:28 +0000 (09:31 +0000)
commit5ddc84ca83fee1cb1f9bc3dd8aca6349f512d372
treef75493d242a6b6a9042457f0ad8bea2c2583d172
parentb4838d77014a4bb6e9d3cd4a1e31ab303de268b9
Move powi folds to match.pd

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
* builtins.c (fold_builtin_powi): Delete.
(fold_builtin_2): Handle constant powi arguments here.
* match.pd: Add rules previously handled by fold_builtin_powi.

gcc/testsuite/
* gcc.dg/builtins-52.c: Add -O to dg-options.

From-SVN: r229409
gcc/ChangeLog
gcc/builtins.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-52.c