]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix pr118947-1.c and pr78408-3.c on targets where 32 bytes memcpy uses a vector
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 19 Apr 2025 03:28:40 +0000 (20:28 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sat, 19 Apr 2025 15:06:26 +0000 (08:06 -0700)
commit52d7676cb4b998521c88691474ed2616226eaa73
treec3858a4978d6b37ae5d761b4778b6564f77b84da
parent0939abea33ce9d9eb9328f80aace8109c096760c
Fix pr118947-1.c and pr78408-3.c on targets where 32 bytes memcpy uses a vector

The problem here is on targets where a 32byte memcpy will use an integral (vector) type
to do the copy and the code will be optimized a different way than expected. This changes
the testcase instead to use a size of 1025 to make sure there is no target that will use an
integral (vector) type for the memcpy and be optimized via the method that was just added.

Pushed as obvious after a test run.

gcc/testsuite/ChangeLog:

* gcc.dg/pr118947-1.c: Use 1025 as the size of the buf.
* gcc.dg/pr78408-3.c: Likewise.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/pr118947-1.c
gcc/testsuite/gcc.dg/pr78408-3.c