On Mon, 18 Jan 2021, John David Anglin wrote:
> The hppa target is a reload target and asm goto is not supported on reload 
> targets.
> Skip failing tests on hppa.

IIUC the preferred term is "IRA target" or maybe "non-LRA
target", as opposed to "LRA target".  The tests fail for
cris-elf too, another IRA target, so I'd like to use that term
when adjusting the dg-skip-if, hope you don't mind.

But also, I'd like to xfail it instead for cris-elf, which adds
a caveat: people might then think a "reload target" is not the
same as an "IRA target", what with the different adjustments.

brgds, H-P

>
> Committed to master.
>
> Regards,
> Dave
>
> Skip asm goto tests on hppa*-*-*.
>
> gcc/testsuite/ChangeLog:
>
>       PR testsuite/97987
>       * gcc.c-torture/compile/asmgoto-2.c: Skip on hppa.
>       * gcc.c-torture/compile/asmgoto-5.c: Likewise.
>
> diff --git a/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c 
> b/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c
> index f1b30c02884..d2d2ac536bd 100644
> --- a/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c
> +++ b/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c
> @@ -1,5 +1,6 @@
>  /* This test should be switched off for a new target with less than 4 
> allocatable registers */
>  /* { dg-do compile } */
> +/* { dg-skip-if "Reload target" { hppa*-*-* } } */
>  int
>  foo (void)
>  {
> diff --git a/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c 
> b/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c
> index 94c14dd4005..ce751ced90c 100644
> --- a/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c
> +++ b/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c
> @@ -1,6 +1,7 @@
>  /* Test to generate output reload in asm goto on x86_64.  */
>  /* { dg-do compile } */
>  /* { dg-skip-if "no O0" { { i?86-*-* x86_64-*-* } && { ! ia32 } } { "-O0" } 
> { "" } } */
> +/* { dg-skip-if "Reload target" { hppa*-*-* } } */
>
>  #if defined __x86_64__
>  #define ASM(s) asm (s)
>

Reply via email to