Move fmin and fmax folds to match.pd
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Oct 2015 11:57:34 +0000 (11:57 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Oct 2015 11:57:34 +0000 (11:57 +0000)
commit129004d7a07dea40a0ce144297369cb5cd76984a
tree745740d734f1d7a2350948b3d5b6f428d3620a3c
parent85258792d95b059a839c4b7939e25129542ad6cd
Move fmin and fmax folds to match.pd

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

gcc/
* builtins.c (fold_builtin_fmin_fmax): Delete.
(fold_builtin_2): Handle constant fmin and fmax arguments here.
* match.pd: Add rules previously handled by fold_builtin_fmin_fmax.

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