https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96525
--- Comment #5 from Peter Bergner <bergner at gcc dot gnu.org> --- (In reply to Alan Modra from comment #4) > I could make the test { do-do link } but running the test is just that > little bit better test of the linker output, and as far as I know there > isn't a way of saying "link this but only run on power10". Does this work? -/* { dg-do run } */ +/* { dg-do run { target power10_hw } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ /* { dg-require-effective-target powerpc_elfv2 } */ +/* { dg-require-effective-target power10_ok } */