On Wed, Aug 13, 2025 at 07:15:37PM +0200, Christophe Lyon wrote:
> Hi Stefan,
> 
> On Tue, 12 Aug 2025 at 13:38, Stefan Schulze Frielinghaus
> <stefa...@linux.ibm.com> wrote:
> >
> > 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.
> 
> I confirm this makes the test pass for me.

Thanks for confirmation!  Pushed as r16-3199-g11e8671365a.

Cheers,
Stefan

> 
> Thanks,
> 
> Christophe
> > ---
> >  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