From: Stefan Schulze Frielinghaus <stefa...@gcc.gnu.org>

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 121511
        * gcc.dg/asm-hard-reg-error-3.c: Add additional option -marm for
        target arm.
---
 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 17b2317db9b..b4254e36381 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.  */
 
-- 
2.49.0

Reply via email to