https://gcc.gnu.org/g:030bbab35f8acaa7b1bdce3a8b2ed4c91e293d28

commit 030bbab35f8acaa7b1bdce3a8b2ed4c91e293d28
Author: Alexandre Oliva <[email protected]>
Date:   Fri Jan 16 19:23:18 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)
 {

Reply via email to