On Mon, Mar 04, 2019 at 05:33:41AM -0800, H.J. Lu wrote:
> > >         PR tree-optimization/89487
> > >         * gcc/testsuite/gcc.dg/tree-ssa/pr89487.c: New test.
> 
> gcc.dg/tree-ssa/pr89487.c:
> 
> /* { dg-do compile } */
> /* { dg-options "-O2 -ftree-loop-distribution" } */
> 
> void
> caml_interprete (void)
> {
>   register int *pc asm("%r15");  <<<< These are valid only for x86-64.
>   register int *sp asm("%r14");
>   int i;
> 
>   for (i = 0; i < 3; ++i)
>     *--sp = pc[i];
> }

It could perhaps #include "../pr87600.h", be guarded with
/* { dg-do compile { target aarch64*-*-* arm*-*-* i?86-*-* powerpc*-*-* 
s390*-*-* x86_64-*-* } } */
and use REG1/REG2 instead.

        Jakub

Reply via email to