]> git.ipfire.org Git - thirdparty/gcc.git/commit
s390: Add testcase for just fixed PR118362
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Jan 2025 21:04:58 +0000 (22:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Jan 2025 21:04:58 +0000 (22:04 +0100)
commit8e4120500e0cfc71956dc6569fe4ff00d2c20949
treef8d271e0718c0cd54cb29df0fb193507e579defd
parent21571cdd8355f2162910d40f2f72222d2dd4046f
s390: Add testcase for just fixed PR118362

On Thu, Jan 09, 2025 at 01:29:27PM +0100, Stefan Schulze Frielinghaus wrote:
> Optimization s390_constant_via_vgbm_p() should only apply to constant
> vectors which can be expressed by the hardware, i.e., which have a size
> of at most 16-bytes, similar as it is done for s390_constant_via_vgm_p()
> and s390_constant_via_vrepi_p().
>
> gcc/ChangeLog:
>
>       PR target/118362
>       * config/s390/s390.cc (s390_constant_via_vgbm_p): Allow at most
>       16-byte vectors.
> ---
>  Bootstrap and regtest are still running.  If both are successful, I
>  will push this one promptly.

This was committed without a testcase, which IMHO shouldn't hurt.

2025-01-09  Jakub Jelinek  <jakub@redhat.com>

PR target/118362
* gcc.c-torture/compile/pr118362.c: New test.
* gcc.target/s390/pr118362.c: New test.
gcc/testsuite/gcc.c-torture/compile/pr118362.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/pr118362.c [new file with mode: 0644]