S/390: Fix immediate vector operands for some builtins.
authorAndreas Krebbel <krebbel@linux.ibm.com>
Mon, 11 Mar 2019 13:30:35 +0000 (13:30 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 11 Mar 2019 13:30:35 +0000 (13:30 +0000)
commitac5aeaae413341adc57926e8ab43fd1e3ec9f7c2
tree5b6a114eb45b1da41ba0090001479c5206b6e9b3
parent8b9482b2d77da5b8db979845b49b3b91bcf898e9
S/390: Fix immediate vector operands for some builtins.

This fixes a problem with vec_add/sub_u128 builtins.  The
s390_expand_builtin backend function is supposed to convert the
operand to TImode *AND* load it into a vector register.  The current
implementation did only the conversion and gave up then.

gcc/ChangeLog:

2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
only on the else branch.

gcc/testsuite/ChangeLog:

2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/zvector/vec-addc-u128.c: New test.

From-SVN: r269583
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/zvector/vec-addc-u128.c [new file with mode: 0644]