]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: arm: thumb2-pop-loreg needs explicit -mthumb
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 Jan 2026 03:30:20 +0000 (00:30 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 Jan 2026 03:30:20 +0000 (00:30 -0300)
If the default CPU under testing merely supports Thumb2, but doesn't
default to it, thumb2-pop-loreg.c fails because the expected pop
instruction won't be found.  Enable -mthumb explicitly.

for  gcc/testsuite/ChangeLog

* gcc.target/arm/thumb2-pop-loreg.c: Enable -mthumb.

gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c

index c8397f64318fb2a82b7900bc490edb4042ccd842..1284a4d72f8d08a403d8d9c0fd0e688d6ab7e43a 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_thumb2_ok } */
-/* { dg-options "-Os" } */
+/* { dg-options "-Os -mthumb" } */
 
 int __attribute__((noinline)) f (void)
 {