On Jul 26 2017, Torsten Duwe <d...@suse.de> wrote: > On Wed, Jul 26, 2017 at 04:16:25PM +0200, Andreas Schwab wrote: >> On Jul 07 2017, Torsten Duwe <d...@suse.de> wrote: >> >> > diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c >> > b/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c >> > new file mode 100644 >> > index 00000000000..8514b10e820 >> > --- /dev/null >> > +++ b/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c >> > @@ -0,0 +1,16 @@ >> > +/* { dg-do compile } */ >> > +/* { dg-options "-O2 -fpatchable-function-entry=3,1" } */ >> > +/* { dg-final { scan-assembler-times "nop" 2 } } */ >> >> This fails on ia64. > > The solution is fairly obvious: on architectures where the nop is not called > "nop" provide a custom, cpu-specific test, or document the failure.
But on ia64, a nop _is_ called nop. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."