Move powi folds to match.pd
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Oct 2015 09:31:28 +0000 (09:31 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Oct 2015 09:31:28 +0000 (09:31 +0000)
commitff19098073020a9b055f58046baabe58574ea0fb
treef75493d242a6b6a9042457f0ad8bea2c2583d172
parentcef15d0976a7343df4c2e6e60039733ca642f586
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229409 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-52.c