match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
authorAndrew Pinski <apinski@cavium.com>
Tue, 27 Jun 2017 17:57:23 +0000 (17:57 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 27 Jun 2017 17:57:23 +0000 (10:57 -0700)
commit8c2805bbbb937cbce2c86fac1146515d6aee81e4
treee9b2edcb8bd0788fb5c2cd483a23fed732bc1233
parent9636e80677cfde263dcff8e5263bf719ec0dbc97
match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.

2017-06-27  Andrew Pinski  <apinski@cavium.com>

        * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
        (X * copysign (1.0, X)): New pattern.
        (X * copysign (1.0, -X)): New pattern.
        (copysign (-1.0, CST)): New pattern.

2017-06-27  Andrew Pinski  <apinski@cavium.com>

        * gcc.dg/tree-ssa/copy-sign-1.c: New testcase.
        * gcc.dg/tree-ssa/copy-sign-2.c: New testcase.
        * gcc.dg/tree-ssa/mult-abs-2.c: New testcase.

From-SVN: r249704
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/copy-sign-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/copy-sign-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/mult-abs-2.c [new file with mode: 0644]