Move fmin and fmax folds to match.pd
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 11:57:34 +0000 (11:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 11:57:34 +0000 (11:57 +0000)
commit0122e8e5212582669a58272d3fcc4beba9f42d58
tree745740d734f1d7a2350948b3d5b6f428d3620a3c
parent783879e617bf3b4d0d94ccabb9a6f40b43c985a2
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.

From-SVN: r229432
gcc/ChangeLog
gcc/builtins.c
gcc/match.pd