S/390: PR79893: Add diagnostics vec_load_bndry builtin.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 24 Mar 2017 13:51:32 +0000 (13:51 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 24 Mar 2017 13:51:32 +0000 (13:51 +0000)
commitdc4f29bc9a9dfcc68b20c0ce767cc3d6fb7409d4
treea8f580507132e9c6e96b398f2eb9e19b19cb2378
parent56010684160c394a1824909e2ac450a6da41db40
S/390: PR79893: Add diagnostics vec_load_bndry builtin.

The boundary argument of the vec_load_bndry builtin needs to be
rewritten.  At that point it must be constant already.  The current
diagnostics in s390_expand_builtins is too late for this.  The patch
adds an additional check for that builtin which will be triggered
already during preprocessing.

Regression tested on s390x.

gcc/testsuite/ChangeLog:

2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/79893
* gcc.target/s390/zvector/pr79893.c: New test.

gcc/ChangeLog:

2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

PR target/79893
* config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
error if the boundary argument is not constant.

From-SVN: r246442
gcc/ChangeLog
gcc/config/s390/s390-c.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/zvector/pr79893.c [new file with mode: 0644]