S/390: arch13: Support 32 bit fp-int vector converts
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 2 Apr 2019 10:57:39 +0000 (10:57 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 2 Apr 2019 10:57:39 +0000 (10:57 +0000)
commit4156b05639ad240a82ff2fae92eede5f4e498fec
treeb6b0072702427033eac50ddbf5dbbc4e7aed24e0
parent618eef38d9d18342930fbc960e5b9c23e6185b40
S/390: arch13: Support 32 bit fp-int vector converts

gcc/ChangeLog:

2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.md ("xde"): Extend mode attribute to vector
types.
* config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
mode iterators.
("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
support 32 bit fp-int conversions. Rename to ...
("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
... to these.

gcc/testsuite/ChangeLog:

2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/arch13/fp-signedint-convert-1.c: New test.
* gcc.target/s390/arch13/fp-unsignedint-convert-1.c: New test.

From-SVN: r270081
gcc/ChangeLog
gcc/config/s390/s390.md
gcc/config/s390/vector.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/arch13/fp-signedint-convert-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/arch13/fp-unsignedint-convert-1.c [new file with mode: 0644]