re PR middle-end/19706 (Recognize common Fortran usages of copysign.)
authorTamar Christina <tamar.christina@arm.com>
Tue, 8 Aug 2017 13:15:44 +0000 (13:15 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Tue, 8 Aug 2017 13:15:44 +0000 (13:15 +0000)
commit336a06a163f7a761f7c3b223a1dd9a1b81cda2cb
tree27330a1034c99eb6062da9796c581d294554ee1f
parentb115e80367277d58bc5476c3c748cf7ec2432a10
re PR middle-end/19706 (Recognize common Fortran usages of copysign.)

2017-08-08  Tamar Christina  <tamar.christina@arm.com>
    Andrew Pinski <pinskia@gmail.com>

PR middle-end/19706
* internal-fn.def (XORSIGN): New.
* optabs.def (xorsign_optab): New.
* tree-ssa-math-opts.c (is_copysign_call_with_1): New.
(convert_expand_mult_copysign): New.
(pass_optimize_widening_mul::execute): Call convert_expand_mult_copysign.

Co-Authored-By: Andrew Pinski <pinskia@gmail.com>
From-SVN: r250956
gcc/ChangeLog
gcc/internal-fn.def
gcc/optabs.def
gcc/tree-ssa-math-opts.c