]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64, testsuite: Fix up auto-init-padding tests
authorAlex Coplan <alex.coplan@arm.com>
Wed, 15 Nov 2023 10:24:41 +0000 (10:24 +0000)
committerAlex Coplan <alex.coplan@arm.com>
Fri, 15 Dec 2023 19:59:58 +0000 (19:59 +0000)
commit635093595ff5ffbcab74a0d63584daf51537c542
treef1f38629b6fa17a48817ccfab978adb5872cd827
parent1ddf65c5fc6ba7cf5826e1c02c569c923a541c09
aarch64, testsuite: Fix up auto-init-padding tests

The tests currently depend on memcpy lowering forming stps at -O0,
but we no longer want to form stps during memcpy lowering, but instead
in the upcoming load/store pair fusion pass.

This patch therefore tweaks affected tests to enable optimizations
(-O1), and adjusts the tests to avoid parts of the structures being
optimized away where necessary.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/auto-init-padding-1.c: Add -O to options,
adjust test to work with optimizations enabled.
* gcc.target/aarch64/auto-init-padding-2.c: Add -O to options.
* gcc.target/aarch64/auto-init-padding-3.c: Add -O to options,
adjust test to work with optimizations enabled.
* gcc.target/aarch64/auto-init-padding-4.c: Likewise.
* gcc.target/aarch64/auto-init-padding-9.c: Likewise.
gcc/testsuite/gcc.target/aarch64/auto-init-padding-1.c
gcc/testsuite/gcc.target/aarch64/auto-init-padding-2.c
gcc/testsuite/gcc.target/aarch64/auto-init-padding-3.c
gcc/testsuite/gcc.target/aarch64/auto-init-padding-4.c
gcc/testsuite/gcc.target/aarch64/auto-init-padding-9.c