]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: arm: Check for short circuit instructions [PR103298]
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sun, 10 Nov 2024 09:46:39 +0000 (10:46 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sun, 22 Dec 2024 15:33:08 +0000 (16:33 +0100)
commit9e1063ca1c854b13950597fd4a14aff4f15ed822
tree74d6520ced809f96a7e05f1801d4e7a111608a5c
parent586477d67bf2e320e8ec41f82b194259c1dcc43a
testsuite: arm: Check for short circuit instructions [PR103298]

Instead of checking that a certain transformation is not used by
counting the number of return instructions and the number of BEQ
instructions, check that none of CMP, MOV, ORR and AND instructions are
suffixed with EQ or NE.
Also removed size check as it's very unstable (depends on optimization
in use).

gcc/testsuite/ChangeLog:

PR testsuite/103298
* gcc.target/arm/pr43920-2.c: Change to assembler pattern
"(cmp|mov|orr|and)(eq|ne)" for the check. Remove size check.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/pr43920-2.c