]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: don't test for shirnk wrapping for arm thumb1 on pr46555.c [PR123751]
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Thu, 22 Jan 2026 07:53:32 +0000 (23:53 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Thu, 22 Jan 2026 08:02:14 +0000 (00:02 -0800)
Thumb1 does not support shrink wrapping so the check for shrink
wrapping in pr46555.c needs to be disabled for that. It does work
with both thumb2 and arm modes.

Pushed after testing for arm with `-mthumb -march=armv8-m.base`,
`-marm -mcpu=cotext-a72` and `-mthumb -mcpu=cotext-a72` to make
sure the correct tests are happening and still pass.

PR testsuite/123751
gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/pr46555.c: Disable for arm thumb1.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/tree-ssa/pr46555.c

index d4de7c2c17051a035521e3086bbf067520b98f16..7b10bcda86818e428a99e2ba6b76da811bee546a 100644 (file)
@@ -25,4 +25,4 @@ int f(int a, int b, int c)
 /* Make sure we only have a PHI with 2 arguments here, 2 and 4.  */
 /* { dg-final { scan-tree-dump "PHI <2..., 4...>|PHI <4..., 2...>" "optimized" } } */
 /* Make sure we can shrink wrap the function now too. */
-/* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" { target { { { i?86-*-* x86_64-*-* } && { ! ia32 } } || { powerpc*-*-* aarch64*-*-* riscv*-*-* arm*-*-* }  } } } } */
+/* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" { target { { { i?86-*-* x86_64-*-* } && { ! ia32 } } || { { powerpc*-*-* aarch64*-*-* riscv*-*-* } || { arm*-*-* && { ! arm_thumb1 } } } } } } } */