Split constant handling out of fold_builtin_fma
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 11:55:38 +0000 (11:55 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 11:55:38 +0000 (11:55 +0000)
commit4e48e02be82c63ebe6687bca93f07b76b5765261
tree911d54ae3690050b7e38b2abd27d129aa38af6ba
parentefc8f0d8d16144627d0fad4c43496f8e6e869161
Split constant handling out of fold_builtin_fma

Just makes an upcoming patch a bit clearer.

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

gcc/
* builtins.c (fold_builtin_fma): Remove constant handling.
(fold_builtin_3): Handle constant fma arguments here.

From-SVN: r229428
gcc/ChangeLog
gcc/builtins.c