]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
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

index c367d6bc15dc243a6c4d11c06f2e2fb60b5d4785..7bde9daea0464982c5d627019917cb39dd776ec0 100644 (file)
@@ -27,6 +27,4 @@ int getFileStartAndLength (int fd, int *start_, size_t *length_)
       return 0;
 }
 
-/* { dg-final { scan-assembler-times "pop" 2 } } */
-/* { dg-final { scan-assembler-times "beq" 3 } } */
-/* { dg-final { object-size text <= 54 { target { ! arm*-*-uclinuxfdpiceabi } } } } */
+/* { dg-final { scan-assembler-not "\t(cmp|mov|orr|and)(eq|ne)\t" } } */