]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: testsuite: tweak bics_3.c [PR113542]
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 8 Mar 2024 16:23:53 +0000 (16:23 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Fri, 8 Mar 2024 17:06:18 +0000 (17:06 +0000)
commitac829a89fb56cfd914d5e29ed4695e499b0dbc95
treede5a01fd4c9f03738f4a9ea400816a0d8a4b9454
parent10c609191c4462133d6a4ea10a739167204f2cd3
arm: testsuite: tweak bics_3.c [PR113542]

This test was too simple, which meant that the compiler was sometimes
able to find a better optimization of the code than using a BICS
instruction.  Fix this by changing the test slightly to produce a
sequence where BICS should always be the preferred solution.

gcc/testsuite:
PR target/113542
* gcc.target/arm/bics_3.c: Adjust code to something which should
always result in BICS.
gcc/testsuite/gcc.target/arm/bics_3.c