https://gcc.gnu.org/g:11e8671365a5464d28b62dd85b740fe9bfdca3e1

commit r16-3199-g11e8671365a5464d28b62dd85b740fe9bfdca3e1
Author: Stefan Schulze Frielinghaus <stefa...@gcc.gnu.org>
Date:   Thu Aug 14 08:07:15 2025 +0200

    testsuite: Fix asm-hard-reg-error-3.c for arm [PR121511]
    
    This test is about register pairs.  On arm a long long is accepted in
    thumb mode in any register 0-6 whereas in arm mode this is restricted to
    even register pairs.  Thus, in order to trigger the error even if gcc is
    configured with --with-mode=thumb, add option -marm.
    
    gcc/testsuite/ChangeLog:
    
            PR target/121511
            * gcc.dg/asm-hard-reg-error-3.c: Add additional option -marm for
            target arm.

Diff:
---
 gcc/testsuite/gcc.dg/asm-hard-reg-error-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/asm-hard-reg-error-3.c 
b/gcc/testsuite/gcc.dg/asm-hard-reg-error-3.c
index 17b2317db9b0..b4254e363818 100644
--- a/gcc/testsuite/gcc.dg/asm-hard-reg-error-3.c
+++ b/gcc/testsuite/gcc.dg/asm-hard-reg-error-3.c
@@ -1,6 +1,6 @@
 /* { dg-do compile { target arm-*-* s390-*-* } } */
 /* { dg-options "-std=c99" } we need long long */
-/* { dg-additional-options "-march=armv7-a" { target arm-*-* } } */
+/* { dg-additional-options "-march=armv7-a -marm" { target arm-*-* } } */
 
 /* Test register pairs.  */

Reply via email to