This patch is to add the support for float from/to long conversion
authorKewen Lin <linkw@gcc.gnu.org>
Sun, 29 Sep 2019 05:08:14 +0000 (05:08 +0000)
committerKewen Lin <linkw@gcc.gnu.org>
Sun, 29 Sep 2019 05:08:14 +0000 (05:08 +0000)
commit51df413634b4dac2fc5e538a13c8f8624903c59e
tree3ccf5bbedf0cfd05d9adb8d582c94cd442687be4
parent59784d3851fccda86fcdf2cdee5a3c3ca231a2d3
This patch is to add the support for float from/to long conversion
vectorization on port rs6000.

gcc/ChangeLog

2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>

    * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
    (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
    (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.

gcc/testsuite/ChangeLog

2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>

    * gcc.target/powerpc/conv-vectorize-1.c: New test.
    * gcc.target/powerpc/conv-vectorize-2.c: New test.

From-SVN: r276266
gcc/ChangeLog
gcc/config/rs6000/vsx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/conv-vectorize-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/conv-vectorize-2.c [new file with mode: 0644]