rs6000-protos.h (rs6000_split_signbit): New prototype.
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Tue, 5 Jul 2016 17:50:22 +0000 (17:50 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Tue, 5 Jul 2016 17:50:22 +0000 (17:50 +0000)
commit36a265b1da18a171412f1b82ca7ac700384439ec
tree942960fd34750603157286c6093cebe8b0015a5c
parent7a98fb6ed6f1b1b7d78466dfdb66bb919740098e
rs6000-protos.h (rs6000_split_signbit): New prototype.

[gcc]

2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
    Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
prototype.
* config/rs6000/rs6000.c (rs6000_split_signbit): New function.
* config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
(SIGNBIT): New mode iterator.
(Fsignbit): New mode attribute.
(signbit<mode>2): Change operand1 to match FLOAT128 instead of
IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
when direct moves are available.
(signbit<mode>2_dm): New define_insn_and_split).
(signbit<mode>2_dm2): New define_insn.

[gcc/testsuite]

2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
    Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* gcc.target/powerpc/signbit-1.c: New test.
* gcc.target/powerpc/signbit-2.c: New test.
* gcc.target/powerpc/signbit-3.c: New test.

Co-Authored-By: Bill Schmidt <wschmidt@linux.vnet.ibm.com>
From-SVN: r238016
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/signbit-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/signbit-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/signbit-3.c [new file with mode: 0644]