S/390: Implement vector copysign.
authorRobin Dapp <rdapp@linux.ibm.com>
Fri, 8 Feb 2019 14:25:48 +0000 (14:25 +0000)
committerRobin Dapp <rdapp@gcc.gnu.org>
Fri, 8 Feb 2019 14:25:48 +0000 (14:25 +0000)
commit062468db046f5229421b027886958fa824af09df
treeedadfbb18f12f48fe4ea016a5f2674996879dac7
parent94e35e0b09978e7179c0079446a8939dbab15fa9
S/390: Implement vector copysign.

This patch implements the vector copysign operation using vector select and a
signbit mask.

gcc/ChangeLog:

2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>

* config/s390/vector.md: Implement vector copysign.

gcc/testsuite/ChangeLog:

2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>

* gcc.target/s390/vector/vec-copysign-execute.c: New test.
* gcc.target/s390/vector/vec-copysign.c: New test.

From-SVN: r268697
gcc/ChangeLog
gcc/config/s390/vector.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/vector/vec-copysign-execute.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/vector/vec-copysign.c [new file with mode: 0644]