[gcc r16-6951] testsuite: arm: thumb2-pop-loreg needs explicit -mthumb
Alexandre Oliva
aoliva@gcc.gnu.org
Wed Jan 21 03:37:41 GMT 2026
https://gcc.gnu.org/g:d3d05d0df6cb11e027f1aaf8bcec586b099aba17
commit r16-6951-gd3d05d0df6cb11e027f1aaf8bcec586b099aba17
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Jan 21 00:30:20 2026 -0300
testsuite: arm: thumb2-pop-loreg needs explicit -mthumb
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.
Diff:
---
gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c b/gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c
index c8397f64318f..1284a4d72f8d 100644
--- a/gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c
+++ b/gcc/testsuite/gcc.target/arm/thumb2-pop-loreg.c
@@ -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)
{
More information about the Gcc-cvs
mailing list