Move copysign folds to match.pd
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 11:53:45 +0000 (11:53 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 11:53:45 +0000 (11:53 +0000)
commit461e4145898e7bdf5b6a0aec280246c0046fe807
tree6f75e09968688d8fbd36aadce4aec1aef57f54dd
parent7f54dc834806d508cef6a77a24d9308fd54cf196
Move copysign folds to match.pd

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

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

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